CN114710465A - Network address conversion method, device, equipment and storage medium - Google Patents
Network address conversion method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114710465A CN114710465A CN202210358952.5A CN202210358952A CN114710465A CN 114710465 A CN114710465 A CN 114710465A CN 202210358952 A CN202210358952 A CN 202210358952A CN 114710465 A CN114710465 A CN 114710465A
- Authority
- CN
- China
- Prior art keywords
- bras
- address
- target
- target account
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2854—Wide area networks, e.g. public data networks
- H04L12/2856—Access arrangements, e.g. Internet access
- H04L12/2869—Operational details of access network equipments
- H04L12/287—Remote access server, e.g. BRAS
- H04L12/2874—Processing of data for distribution to the subscribers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The application provides a network address translation method, a device, equipment and a storage medium, relates to the technical field of communication, and can reduce the configuration cost of an NAT44 board card. The method comprises the following steps: the controller receives internet surfing request information of a target account, wherein the internet surfing request information is used for acquiring target data from a network; when the BRAS equipment accessed by the target account is second BRAS equipment and the IP address of the target account is a private network IP address, the controller forwards the Internet surfing request information and the IP address of the target account to first target BRAS equipment, so that the first target BRAS equipment converts the IP address of the target user into a public network IP address through a configured NAT44 board card, and acquires target data by using the public network IP address of the target user, wherein the first target BRAS equipment is one of one or more first BRAS equipment.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for network address translation.
Background
In order to ensure that a computer can access a network (internet), a public Internet Protocol (IP) address needs to be allocated to the computer. The number of public IP addresses is limited, however, resulting in a decreasing number of available public IP addresses as the number of computers continues to increase. In order to reasonably utilize the public IP address, a large number of private IP addresses can be converted into a small number of public IP addresses by a network address translation (NAT 44) technology, so that the use of the public IP addresses is reduced to a certain extent while the communication between the host inside the private network and the host on the internet is realized. The NAT44 technology may refer to configuring a NAT44 board on a broadband access server (BRAS) device, and converting a private network IP address into a public IP address through a NAT44 board.
Generally, a distributed NAT44 board is generally configured, that is, a NAT44 board is configured on each BRAS device. However, when the number of BRAS devices is large, if the NAT44 board is configured in a distributed manner, the cost is high.
Disclosure of Invention
The application provides a network address translation method, a device, equipment and a storage medium, so as to reduce the configuration cost of a NAT44 board card.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a network address translation method, which is applied to a network address translation NAT44 architecture, where the NAT44 architecture includes multiple broadband access server BRAS devices and a controller communicatively connected to the multiple BRAS devices, where the multiple BRAS devices include one or more first BRAS devices and one or more second BRAS devices, the first BRAS devices are configured with one or more NAT44 boards, the second BRAS devices are not configured with NAT44 boards, and the NAT44 board is used to translate private internet protocol IP addresses into public internet IP addresses, the method includes: the controller receives internet access request information of a target account, wherein the internet access request information is used for acquiring target data from a network; when the BRAS equipment accessed by the target account is second BRAS equipment and the IP address of the target account is a private network IP address, the controller forwards the Internet surfing request information and the IP address of the target account to first target BRAS equipment so that the first target BRAS equipment converts the IP address of the target user into a public network IP address through a configured NAT44 board card and obtains target data from a network by using the public network IP address of the target user and the Internet surfing request information, wherein the first target BRAS equipment is one of one or more first BRAS equipment.
Optionally, the controller determines the IP address of the target account, including: the controller determines a rank of the target account; and the controller determines the IP address of the target account according to the grade of the target account.
Optionally, the determining, by the controller, the IP address of the target account according to the level of the target account includes: when the grade of the target account is greater than or equal to the preset grade, the controller determines that the IP address of the target account is a public network IP address; and when the grade of the target account is less than the preset grade, the controller determines that the IP address of the target account is a private network IP address.
Optionally, when the BRAS device accessed by the target account is the first BRAS device and the IP address of the target account is the private network IP address, the controller sends the internet access request information and the IP address of the target account to the BRAS device accessed by the target account, so that the BRAS device accessed by the target account obtains the target data from the network according to the internet access request information and the IP address.
Optionally, the controller determines a first target BRAS device according to the resource utilization rate of one or more first BRAS devices, wherein when the resource utilization rate of one or more BRAS devices is lower than a first threshold, the first target BRAS device is any one of the one or more first BRAS devices; when the BRAS equipment with the resource utilization rate higher than or equal to the first threshold exists in the one or more BRAS equipment, the first target BRAS equipment is the BRAS equipment with the resource utilization rate lower than the first threshold in the one or more first BRAS equipment.
Optionally, when the IP address of the target account is a public network IP address, the controller sends the IP address of the target account and the internet access request information to the second target BRAS device, so that the second target BRAS device obtains the target data from the network according to the IP address and the internet access request information; when the resource utilization rate of one or more BRAS devices is smaller than a first threshold value, the second target BRAS device is a BRAS device accessed by a target account; and when the equipment with the resource utilization rate higher than or equal to the first threshold exists in the one or more BRAS equipment, the second target BRAS equipment is the BRAS equipment accessed by the target account or the BRAS equipment with the lowest resource utilization rate in the one or more BRAS equipment.
In a second aspect, the present application provides a network address translation apparatus, which is applied to a network address translation NAT44 architecture, where the NAT44 architecture includes a plurality of broadband access server BRAS devices and a controller communicatively connected to the plurality of BRAS devices, where the plurality of BRAS devices include one or more first BRAS devices and one or more second BRAS devices, the first BRAS devices are configured with one or more NAT44 boards, the second BRAS devices are not configured with NAT44 boards, and the NAT44 board is used to translate private internet protocol IP addresses into public internet IP addresses, and the network address translation apparatus includes: a receiving unit, a determining unit and a transmitting unit; the system comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving internet surfing request information of a target account, and the internet surfing request information is used for acquiring target data from a network; the determining unit is used for determining the IP address of the target account according to the grade of the target account; and the sending unit is used for forwarding the internet access request information and the IP address of the target account to the first target BRAS equipment when the BRAS equipment accessed by the target account is second BRAS equipment and the IP address of the target account is a private network IP address, so that the first target BRAS equipment converts the IP address of the target user into a public network IP address through a configured NAT44 board card and acquires target data from a network by using the public network IP address of the target user and the internet access request information, and the first target BRAS equipment is one of one or more first BRAS equipment.
Optionally, the determining unit is specifically configured to: when the grade of the target account is greater than or equal to the preset grade, determining that the IP address of the target account is a public network IP address; and when the grade of the target account is less than the preset grade, determining the IP address of the target account as a private network IP address.
Optionally, the determining unit is further configured to: when the BRAS equipment accessed by the target account is first BRAS equipment and the IP address of the target account is a private network IP address, determining the first target BRAS equipment according to the resource utilization rate of one or more first BRAS equipment.
Optionally, the determining unit is further configured to: determining a first target BRAS device according to the resource utilization rate of one or more first BRAS devices; when the BRAS equipment accessed by the target account is first BRAS equipment and the IP address of the target account is a private network IP address, the controller sends internet access request information and the IP address of the target account to the BRAS equipment accessed by the target account, so that the BRAS equipment accessed by the target account obtains target data from a network according to the internet access request information and the IP address.
Optionally, the determining unit is further configured to: when the IP address of the target account is a public network IP address, the controller sends the IP address of the target account and the internet access request information to the second target BRAS equipment, so that the second target BRAS equipment obtains target data from the network according to the IP address and the internet access request information; when the resource utilization rate of one or more BRAS devices is smaller than a first threshold value, the second target BRAS device is a BRAS device accessed by a target account; when the device with the resource utilization rate higher than or equal to the first threshold exists in the one or more BRAS devices, the second target BRAS device is the BRAS device accessed by the target account or the BRAS device with the lowest resource utilization rate in the one or more BRAS devices.
In a third aspect, the present application provides a controller comprising: a processor, a communication interface, and a memory; wherein the controller is configured to store one or more programs, the one or more programs including computer executable instructions, and when the controller is running, the processor executes the computer executable instructions stored in the memory, so as to cause the controller to perform the network address translation method of any one of the first aspect and the various alternative implementations thereof.
In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored, and when the instructions are executed by a computer, the computer executes the network address translation method of any one of the first aspect and various optional implementations thereof.
Based on the technical scheme provided by the embodiment of the application, by setting a brand-new NAT44 architecture, the NAT44 architecture comprises a first BRAS device, a second BRAS device and a controller. The method comprises the steps that the first BRAS equipment is provided with one or more NAT44 board cards, the second BRAS equipment is not provided with the NAT44 board card, and when the BRAS equipment accessed to a target account is the second BRAS equipment and the IP address of the target account is a private network IP address, the controller forwards Internet surfing request information and the IP address of the target account to the first BRAS equipment, so that the first BRAS equipment can convert the IP address of a target user into a public network IP address through the configured NAT44 board card. That is, while the network address translation of the IP address of the account is ensured, each BRAS device does not need to be configured with NAT44 board cards, so that the number of NAT44 board cards is reduced, and the configuration cost of the NAT44 board cards can be reduced.
Drawings
Fig. 1 is a schematic diagram of a network architecture according to an embodiment of the present application;
fig. 2 is a schematic diagram of another network architecture provided in the embodiment of the present application;
fig. 3 is a schematic diagram of another network architecture provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a network address translation device according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a network address translation method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a network address translation method according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a network address translation method according to an embodiment of the present application;
fig. 8a is a schematic flowchart of a network address translation method according to an embodiment of the present application;
fig. 8b is a schematic flowchart of a network address translation method according to an embodiment of the present application;
fig. 8c is a schematic flowchart of a network address translation method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a network address translation device according to an embodiment of the present application.
Detailed Description
A network address translation method, an apparatus, a device, and a storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second" and the like in the description and drawings of the present application are used for distinguishing different objects or for distinguishing different processes for the same object, and are not used for describing a specific order of the objects.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
Before describing the embodiments of the present application, terms in the embodiments of the present application will be explained.
Private network IP address: refers to the IP address used by the network within the local area network. The computer and other devices cannot access the external network through the private network IP address.
Generally, when a computer or other device needs to access an external network, it is possible to convert a private network IP address into a public network IP address by using the NAT44 technology and access the external network using the public network IP address.
Public network IP address: refers to an unreserved address on the internet connected to a public network. Computers and like devices may use public network IP addresses to directly access the internet, as well as other computers on the internet.
In order to ensure that a computer can access a network, a public IP address needs to be allocated to the computer. The number of public IP addresses is limited, however, resulting in a decreasing number of available public IP addresses as the number of computers continues to increase.
To address the above problem, the following two solutions can be adopted:
firstly, a NAT44 board is configured in a centralized mode. The centralized configuration of the NAT44 board realizes IP address translation by mounting a dedicated NAT44 board on a Core Router (CR).
For example, fig. 1 shows a network architecture diagram of a centralized configuration NAT44 board, which includes a plurality of backbone routers, a plurality of CR devices, a plurality of ordinary BRAS devices, a plurality of OLT devices, and a plurality of end devices in a backbone network. One backbone router may be coupled to multiple CR devices. One CR device may be connected to a plurality of ordinary BRAS devices, and each CR device may be configured with one or more NAT44 boards. A generic BRAS device may be connected to multiple Optical Line Terminal (OLT) devices. One OLT apparatus can be connected to a plurality of terminal apparatuses.
Wherein the backbone network router may be used to connect high speed networks in multiple areas or regions.
CR devices may be used for data packet routing and forwarding.
The ordinary BRAS equipment is used for distributing an IP address for the terminal equipment, the IP address can be a private network IP address or a public network IP address, and the terminal equipment can be connected with a network by using the IP address. When the IP address is a private network IP address, the general BRAS device may transmit the private network IP address to the CR device. Correspondingly, the CR equipment receives the private network IP address sent by the common BRAS equipment, and converts the private network IP address into a public network IP address by utilizing the NAT44 board card configured by the CR equipment.
The OLT device may be configured to relay the internet access request message and the target data between the terminal device and the BRAS device.
Based on the network architecture diagram shown in fig. 1, the process of the terminal device obtaining the target data from the network may include the following steps:
1. and responding to the internet access operation of the user, and sending an internet access request to the OLT equipment by the terminal equipment. Correspondingly, the OLT equipment receives the Internet access request information from the terminal equipment.
The internet access request may be used to request to obtain target data. For example, the request for surfing the internet may include an identification of the data, information of the user, an identification of the terminal device, and the like. The user's information may include the user's account, password, etc.
2. And the OLT equipment forwards an Internet access request to the accessed ordinary BRAS equipment. Correspondingly, the ordinary BRAS equipment receives the internet access request information from the OLT equipment.
3. The ordinary BRAS equipment allocates a private network IP address for the terminal equipment and sends the private network IP address and the internet access request information to the CR equipment accessed by the terminal equipment. Correspondingly, the CR equipment receives the private network IP address and the internet access request information sent by the common BRAS equipment.
4. The CR equipment converts the private network IP address into a public network IP address by using the configured NAT44 board card, and sends the public network IP address and the internet request information to the backbone network. Correspondingly, the backbone network router receives the public network IP address and the internet access request information sent by the CR equipment.
5. And the backbone network router acquires target data from the network according to the public network IP address.
6. And the backbone network router sends the target data and the public network IP address to the CR equipment. Correspondingly, the CR equipment receives the target data and the public network IP address sent by the backbone network.
7. The CR equipment converts the public network IP address into a private network IP address by using the configured NAT44 board card, and determines the terminal equipment for receiving the target data and a data transmission path.
It should be noted that, since the private network IP address corresponds to the terminal device, the CR device may determine the terminal device that receives the target data and the data transmission path based on the private network IP address. As shown in fig. 1, the CR device may transmit target data to the terminal device through the following data transmission paths: CR device → general BRAS device → OLT device → terminal device.
However, since the number of ports of the CR is limited, and the resources of the CR are relatively limited, the dedicated NAT44 board may cause a large consumption of the CR ports.
And secondly, distributing and configuring NAT44 boards. The distributed configuration of the NAT44 board refers to the implementation of address translation by configuring a NAT44 board on BRAS equipment.
For example, fig. 2 shows a network architecture diagram of a distributed NAT44 board. The system comprises a plurality of backbone network routers, CR equipment, special BRAS equipment, OLT equipment and terminal equipment in a backbone network.
Wherein, one backbone router can be connected with a plurality of CR devices. One CR device may be connected to a plurality of special BRAS devices, one special BRAS device may be connected to a plurality of OLT devices, and one OLT device may be connected to a plurality of terminal devices.
The special BRAS device may refer to a BRAS device configured with a NAT44 board. The special BARS device can be used for allocating a private network IP address or a public network IP address for the terminal device, and can also be used for converting the IP address through a configured NAT44 board card. One particular BRAS device may be configured with one or more NAT44 boards.
Based on the network architecture shown in fig. 2, the internet access request process of the terminal device may include the following steps:
1. and responding to the internet access operation of the user, and sending an internet access request to the OLT equipment by the terminal equipment. Correspondingly, the OLT equipment receives the Internet access request information from the terminal equipment.
The internet access request may be used to request to obtain data. For example, the request for surfing the internet may include an identification of the data, information of the user, an identification of the terminal device, and the like. The user's information may include the user's account, password, etc.
2. And the OLT equipment sends the Internet access request information to the special BRAS equipment accessed by the OLT equipment. Correspondingly, the special BRAS equipment receives the internet access request information sent by the terminal equipment.
3. The special BRAS device distributes a private network IP address for the terminal device, converts the private network IP address into a public network IP address, and then sends the public network IP address and the internet access request information to the CR device. Correspondingly, the CR equipment receives the public network IP address and the internet access request information sent by the special BRAS equipment.
4. And the CR equipment sends a public network IP address and networking request information to the backbone network router. Correspondingly, the backbone network router receives the public network IP address and the internet access request information sent by the CR equipment.
5. The backbone network router forwards the public network IP address and the internet request information to the Internet, and the Internet generates target data according to the internet request information and sends the public network IP address and the target data to the backbone network router. Accordingly, the backbone network router receives the backbone network router public network IP address and the target data sent by the Internet.
6. And the backbone network router sends the target data to the CR equipment according to the public network IP address. Correspondingly, the CR equipment receives the target data and the public network IP address sent by the backbone network router.
7. And the CR equipment sends the target data and the public network IP address to the special BRAS equipment. Correspondingly, the special BRAS equipment receives the target data and the public network IP address sent by the CR equipment.
8. The special BRAS device converts the public network IP address into a private network IP address through the NAT44 board card, and determines the terminal device for receiving the target data and a data transmission path.
It should be noted that, since the private network IP address corresponds to the terminal device, the special BRAS device may determine the terminal device receiving the target data and the data transmission path based on the private network IP address. As shown in fig. 2, a special BRAS device may send target data to a terminal device via the following data transmission paths: special BRAS equipment → OLT equipment → terminal equipment.
However, distributed configuration requires configuring NAT44 boards on each BRAS device, and when the number of BRAS devices is large, the number of NAT44 boards to be configured is also large, which results in high cost. In addition, the above two technical solutions may have the following problems: if one BRAS device in a plurality of BRAS devices receives a large number of account internet access requests within a preset time period, and other BRAS devices do not receive the account internet access requests or receive a small number of internet access requests, the load imbalance of the plurality of BRAS devices may be caused. For example, a BRAS device that receives a large number of account requests to surf the internet runs at full capacity, while other BRAS devices are idle.
In view of this, as shown in fig. 3, the present embodiment provides a network architecture, which may include a plurality of terminal devices 31, one or more first BRAS devices 32, one or more second BRAS devices 33, and a controller 34. A controller 34 is connected to the plurality of first BRAS devices 32 and the one or more second BRAS devices 33.
Both a first BRAS device 32 and a second BRAS device 33 can be connected to a plurality of terminal devices 31.
The first BRAS device 32 is referred to as a special BRAS device. The first BRAS device 32 may be operable to translate the private network IP address of the terminal device 31 into a public network IP address. When receiving data, the first BRAS device 32 may be configured to convert the public network IP address into a private network IP address, and then send the data to a terminal device that needs to receive the data according to the private network IP address.
The second BRAS device 33 is referred to as a normal BRAS device. Reference may be made to the above description for the description of the second BRAS device.
The controller 34 may be configured to forward an internet access request of the terminal device 31 to the first BRAS device or the second BRAS device. For example, the controller 34 may be a server.
Further, as shown in fig. 3, the network architecture may further include an OLT device 35, a CR device 36, and a backbone router 37. The OLT device 35 is communicatively connected to the terminal device 31, the second BRAS device 33 and the first BRAS device 32, respectively. The CR device 36 may be communicatively coupled to a backbone router 37, the second BRAS device 33, and the first BRAS device 32. The controller 34 may be communicatively connected to the second BRAS device 33 as well as the first BRAS device 32. For example, a wireless communication connection may be possible.
Based on the network architecture shown in fig. 3, an embodiment of the present application further provides a network address translation method, where the method includes: the method comprises the steps that a controller receives internet access request information of a target account, the internet access request information is used for obtaining target data from a network, and the controller determines an IP address of the target account, wherein the IP address comprises a public network IP address and a private network IP address; when the BRAS equipment accessed by the target account is second BRAS equipment and the IP address of the target account is a private network IP address, the controller forwards the Internet surfing request information and the IP address of the target account to first target BRAS equipment so that the first target BRAS equipment converts the IP address of the target user into a public network IP address through a configured NAT44 board card and obtains target data by using the public network IP address of the target user, and the first target BRAS equipment is one of one or more first BRAS equipment.
It should be noted that fig. 3 is only an exemplary architecture diagram, and besides the functional units shown in fig. 3, the access system may also include other functional units, which is not limited in this application.
In a specific implementation, each device in fig. 3 may adopt the composition structure shown in fig. 4, or include the components shown in fig. 4. Fig. 4 is a schematic diagram illustrating a network address translation device according to an embodiment of the present disclosure, where the network address translation device includes a processor 401, a communication interface 402, a communication line 403, and a memory 404.
The processor 401 may be a CPU, a general purpose processor Network (NP), a Digital Signal Processor (DSP), a microprocessor, a microcontroller, a Programmable Logic Device (PLD), or any combination thereof. The processor 401 may also be other means having processing functionality, such as, without limitation, a circuit, a device, or a software element. In one example, processor 401 may include one or more CPUs, such as CPU0 and CPU1 in fig. 4.
A communication interface 402 for data processing with other devices or other data processing networks. The other data processing network may be an ethernet, a Radio Access Network (RAN) device, a Wireless Local Area Network (WLAN), or the like. The communication interface may be a unit, a circuit, a communication interface or any device capable of data processing.
Communication lines 403 for transmitting messages between the various components comprised in the access system.
A memory 404 for storing instructions. Wherein the instructions may be a computer program.
The memory 404 may be a read-only memory (ROM) or another type of static storage device that can store static messages and/or instructions, a Random Access Memory (RAM) or another type of dynamic storage device that can store messages and/or instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or another optical disc storage, an optical disc storage (including a compact disc, a laser disc, an optical disc, a digital versatile disc, a blu-ray disc, and the like), a magnetic disc storage medium or another magnetic storage device, and the like, without limitation.
It is noted that the memory 404 may exist separately from the processor 401 or may be integrated with the processor 401. The memory 404 may be used for storing instructions or program code or some network data or the like. The memory 404 may be located inside the network address translation device or outside the network address translation device, which is not limited. The processor 401 is configured to execute the instructions stored in the memory 404 to implement the network address translation method provided in the following embodiments of the present application.
As an alternative implementation, the network address translation device includes multiple processors, for example, the processor 407 may be included in addition to the processor 401 in fig. 4.
As an alternative implementation manner, the network address translation apparatus further includes an output device 405 and an input device 406. Illustratively, the input device 406 is a keyboard, mouse, microphone, or joystick, among other devices, and the output device 405 is a display screen, speaker (spaker), among other devices.
In the embodiment of the present application, the chip system may be formed by a chip, and may also include a chip and other discrete devices.
In addition, acts, terms, and the like referred to between the embodiments of the present application may be mutually referenced and are not limited. In the embodiment of the present application, the name of the message exchanged between the devices or the name of the parameter in the message, etc. are only an example, and other names may also be used in the specific implementation, which is not limited.
As shown in fig. 5, the network address translation method provided in the embodiment of the present application may be applied to the network architecture shown in fig. 3, and the method may include: S501-S503.
S501, the controller receives internet access request information of the target account.
The target account may be an account of the login terminal device 31 in fig. 3. The controller may be the controller 34 in fig. 3, or may be a device, such as a chip, in the controller 34.
The internet access request information may be used to request to obtain target data. For example, the internet access request information may include an identification of the target data, information of the target account, and the like. For example, the information of the target account may include an account number of the target account, a rating of the target account, and the like. The rating of the account may be used to characterize the importance or priority of the target account. The higher the rank of an account, the higher the priority of the account. The rating of the account may be determined by the spending limit of the account, for example, the higher the limit of the account, the higher the rating of the account. For example, the rating of an account may include 1, etc., 2, etc., 3, etc., 4, etc., 5, etc. Of course, the target account may include other levels, and the application is not limited.
As a possible implementation manner, the terminal device sends the internet access request information to the accessed OLT device in response to the sending operation of the user. After receiving the internet access request information, the OLT equipment forwards the internet access request information to the accessed BRAS equipment. After receiving the internet access request information, the BRAS device forwards the internet access request information to an accessed controller. Correspondingly, the controller receives the internet access request information sent by the OLT equipment through the BRAS equipment.
S502, the controller determines the IP address of the target account.
Wherein, the IP address comprises a public network IP address and a private network IP address.
As a possible implementation manner, when the network request information includes the target account, the controller may determine the IP address of the target account according to the rank of the target account. For example, when the level of the target account is greater than or equal to a preset level, the controller determines that the IP address of the target account is a public network IP address; and when the grade of the target account is less than the preset grade, the controller determines that the IP address of the target account is a private network IP address. The preset level may be set as desired.
In one example, when the BRAS device accessed by the target account comprises 100 public network IP addresses and the number of accounts served by the BRAS device is 500, the controller determines that the public network IP address is allocated to the account 100 before the ranking of the account level and the private network IP address is allocated to the account 400 after the ranking of the account level.
In another example, with reference to the example in S501, when the level of the target account is greater than or equal to level 3, the controller determines that the IP address of the target account is a public network IP address; when the high level of the target account is lower than the level 3, the controller determines that the IP address of the target account is a private network IP address.
As another possible implementation manner, when the internet access request information includes an IP address corresponding to the target account, the controller may determine whether the IP address is a public network IP or a private network IP according to whether the IP address is in a preset range. Wherein the preset range may be pre-configured by the controller.
For example, the preset range may refer to a range corresponding to a private network IP address. For example, the preset range may include: 10.0.0-10.255.255.255, 172.16.0.0-172.31.255.255, 192.168.0-192.168.255.255. When the IP address of the account is within the preset range, the IP address of the account is in a private network IP address; and when the IP address of the account is not in the preset range, indicating that the IP address of the account belongs to the public network IP address.
For another example, the preset range may also refer to a range corresponding to a public network IP address. For example, the preset range may include: 10.255.255.255-172.16.0.0. When the IP address of the account is within the preset range, the IP address of the account is in the public network IP address; and when the IP address of the account is not in the preset range, indicating that the IP address of the account belongs to the private network IP address.
For another example, the preset range may include a range corresponding to a private network IP address and a range corresponding to a public network IP address. When the IP address of the account is in the range corresponding to the private network IP address, the IP address of the account belongs to the private network IP address. And when the IP address of the account is in the range corresponding to the public network IP address, indicating that the IP address of the account belongs to the public network IP address.
Further, when the IP address of the account does not belong to the range corresponding to the private network IP address, or the public network IP address, the controller may reassign the IP address to the account. For example, the controller may determine the IP address of the account according to the grade of the account, and reference may be specifically made to the description of the above possible embodiments, which is not repeated herein.
It should be noted that, when the target account remains in the login state, that is, the terminal device sends a request for accessing the internet for multiple times, the terminal device is in the networking state. For example, there is no network disconnection between the first time internet access request information and the second time internet access request information, and the second time internet access request information includes an IP address allocated by the first time internet access request information.
And under the state that the target account logs in again, namely the target account has the network disconnection condition between the first-time internet access request information and the second-time internet access request information, the second-time internet access request information does not comprise an IP address, and the controller is required to inquire and request to allocate the IP address.
S503, when the IP address of the target account is a private network IP address and the BRAS device accessed by the target account is a second BRAS device, the controller forwards the Internet access request information and the IP address of the target account to the first target BRAS device, so that the first target BRAS device converts the private network IP address of the target account into a public network IP address through the configured NAT44 board card, and acquires target data from the network by using the public network IP address of the target account and the Internet access request information.
The second BRAS device may be the second BRAS device 33 in fig. 3, or may be a device, such as a chip, in the second BRAS device 33. The first BRAS device may be the first BRAS device 32 in fig. 3, or may be a device, such as a chip, in the first BRAS device 32.
The BRAS device accessed by the target account can be a BRAS device in an area where the target account is located, a public network IP address of a target user is used for obtaining target data, and the first target BRAS device is one of one or more first BRAS devices. For example, the first target BRAS device may be any one of the one or more first BRAS devices, or may be the one of the one or more first BRAS devices with the lowest resource utilization. Specifically, reference may be made to the following description of S602.
Specifically, the process of S503 may include: and the controller sends the private network IP address of the target account and the internet access request information to the first target BRAS equipment. Correspondingly, the first target BRAS equipment receives the private network IP address of the target account and the internet access request information sent by the controller.
In a possible implementation manner, after the first target BRAS device receives the internet access request information and the IP address of the target account from the controller, the first target BRAS device may convert the private network IP address of the target account into a public network IP address through one or more configured NAT44 boards.
In one example, the first target BRAS device may determine a NAT44 card for network address translation according to the configured utilization of one or more NAT44 cards. The utilization rate of the NAT44 board can be used for representing the use condition of the NAT44 board.
For example, when the utilization rates of the one or more NAT44 boards are all higher than or equal to a preset threshold, the first target BRAS device may perform network address translation using the least-utilized NAT44 board of the one or more NAT44 boards.
For another example, when the utilization rates of the one or more NAT44 boards are all lower than the preset threshold, the first target BRAS device may use any NAT44 board of the one or more NAT44 boards to perform network address translation.
The method for converting the private network IP address of the target account into the public network IP address by the first target BRAS device through the configured NAT44 board card may refer to the prior art and is not described in detail.
The method for the first target BR to obtain the target data from the network by using the public network IP address of the target account and the internet access request information may refer to the process shown in fig. 1 or fig. 2, which is not described in detail.
Based on the technical scheme provided by the embodiment of the application, by setting a brand-new NAT44 architecture, the NAT44 architecture includes a first BRAS device, a second BRAS device and a controller. The method comprises the steps that the first BRAS equipment is provided with one or more NAT44 board cards, the second BRAS equipment is not provided with the NAT44 board card, and when the BRAS equipment accessed to a target account is the second BRAS equipment and the IP address of the target account is a private network IP address, the controller forwards Internet surfing request information and the IP address of the target account to the first BRAS equipment, so that the first BRAS equipment can convert the IP address of a target user into a public network IP address through the configured NAT44 board card. That is, while ensuring that the IP address of the account can be converted into the network address, each BRAS device does not need to be configured with NAT44 board cards, so that the number of NAT44 board cards is reduced, and the configuration cost of the NAT44 board cards can be reduced.
In a possible embodiment, as shown in fig. 6, the method provided in this embodiment of the present application may further include the following step S601.
S601, when the IP address of the target account is a private network IP address and the BRAS equipment accessed by the target account is first BRAS equipment, the controller sends internet access request information and the IP address of the target account to the BRAS equipment accessed by the target account, so that the BRAS equipment accessed by the target account acquires target data from a network according to the internet access request information and the IP address.
The specific step of obtaining the target data from the network may refer to the internet access request process in the distributed NAT44 board, which is not described in detail.
Based on the possible embodiment, when the BRAS equipment accessed by the target account can perform network address conversion and the IP address of the target account is a private network IP address, the controller can forward the IP address of the target account and the internet access request information to the BRAS equipment accessed by the target account, so that the controller can directly send the internet access request information to the BRAS equipment accessed by the target account when receiving the target data corresponding to the internet access request information, the controller does not need to send the internet access request information to other BRAS equipment again for performing IP address conversion, the data forwarding times are reduced, and the data transmission time is saved.
In a possible embodiment, with reference to fig. 5, as shown in fig. 6, before S503, the method provided in this embodiment may further include S602.
S602, the controller determines a first target BRAS device according to resource utilization of one or more first BRAS devices.
The resource utilization rate of the BRAS equipment can be determined according to the number of internet access requests processed by the BRAS equipment in unit time. For example, the maximum number of internet access requests that can be processed by the BRAS device per second is 100, and if the number of internet access requests that can be processed by the BRAS device per second in the current time period is 50, the resource utilization rate of the BRAS device in the current time period is 50%.
In one example, the first target BRAS device can be any one of the one or more first BRAS devices when the resource utilization of the one or more BRAS devices is lower than a first threshold. For example, the first target BRAS device may be a first BRAS device to which the target account is accessed.
The first threshold may be set as needed, for example, may be 70%, and is not limited.
In yet another example, the first target BRAS device may be a first BRAS device with a lowest utilization among the one or more first BRAS devices when resource utilization of the one or more BRAS devices is each higher than or equal to a first threshold.
In yet another example, when there is a BRAS device with a resource utilization rate higher than or equal to a first threshold among the one or more BRAS devices, the first target BRAS device may be a BRAS device with a resource utilization rate lower than the first threshold among the one or more first BRAS devices.
It should be noted that, in this embodiment of the application, the controller may further store a correspondence between the IP address of the target account and the target account. Therefore, when the subsequent controller acquires the target data, the target account for receiving the data can be determined according to the corresponding relation, and the target data can be sent to the terminal equipment logged in by the target account.
Further, when the IP address corresponding to the target account is a private network IP address, after receiving the target data and the public network IP address corresponding to the target account and converted, the first target BRAS device may send the target data to the terminal device logged in by the target account through the following path:
1. the first target BRAS device converts the public network IP address into a private network IP address of the target account, and sends target data and the private network IP address to the controller. Correspondingly, the controller receives the target data and the private network IP address sent by the first target BRAS equipment.
2. And the controller sends the target data, the private network IP address and the corresponding relation between the target account and the private network IP address to the BRAS equipment accessed by the target account according to the corresponding relation between the target account and the private network IP address stored in advance. The process of sending the target data to the terminal device by the BRAS device may refer to the process of receiving the target data by the target account in the distributed NAT44 board, which is not described in detail.
In a possible embodiment, as shown in fig. 7, the method provided in this embodiment may further include the following step S701:
and S701, when the IP address of the target account is a public network IP address, the controller sends the IP address of the target account and the internet access request information to the second target BRAS device, so that the second target BRAS device obtains target data from the network according to the IP address and the internet access request information.
The second target BRAS device can be a BRAS device accessed by the target account or a BRAS device with the lowest resource utilization rate in one or more BRAS devices.
In one example, when the resource utilization rates of one or more BRAS devices are all less than a first threshold, a second target BRAS device is a BRAS device accessed by a target account; when there is a device with resource utilization higher than or equal to the first threshold in the one or more BRAS devices, the second target BRAS device may be a BRAS device accessed by the target account or a BRAS device with the lowest resource utilization in the one or more BRAS devices.
For example, taking the first threshold as 70%, when the resource utilization rates of the plurality of BRAS devices are all less than 70%, the second target BRAS device may be a BRAS device to which the target account is accessed.
For another example, when the resource utilization rates of the plurality of BRAS devices are all higher than or equal to 70%, the second target BRAS device is the second BRAS device with the lowest resource utilization rate.
For another example, when the resource utilization rates of the plurality of second BRAS devices are all lower than 70%, and there is a first BRAS device with the resource utilization rate lower than 70% in the one or more first BRAS devices, the controller determines that the second target BRAS device is the second BRAS device with the lowest resource utilization rate.
For another example, when the resource utilization rates of one or more second BRAS devices are all lower than 70%, and the resource utilization rates of one or more first BRAS devices are all higher than or equal to 70%, the controller determines that the second target BRAS device is the second BRAS device with the lowest resource utilization rate.
For another example, when there is a second BRAS device with a resource utilization rate higher than or equal to 70% in one or more second BRAS devices, and there is a resource utilization rate lower than 70% in one or more first BRAS devices, the controller determines that the second target BRAS device is the second BRAS device with the lowest resource utilization rate.
In one possible embodiment, the controller allocates BRAS equipment to the target account according to different scenes.
In different scenarios, the utilization rates of a plurality of BRAS devices may be different. For example, the controller determines scenario one, scenario two, scenario three based on the utilization of one or more BRAS devices.
Specifically, the scenario one may mean that the resource utilization of one or more BRAS devices is lower than a preset threshold.
Scenario two may mean that the resource utilization rates of one or more second BRAS devices are all higher than or equal to a preset threshold, and there is one or more first BRAS devices whose resource utilization rates are lower than the preset threshold.
A third scenario may mean that the processing capacity utilization rates of one or more BRAS devices are all higher than or equal to a preset utilization rate threshold, or the utilization rates of one or more second BRAS devices are all lower than the preset utilization rate threshold, and a first BRAS device whose utilization rate is lower than the preset utilization rate threshold exists in one or more first BRAS devices; or the utilization rates of one or more second BRAS devices are all lower than a preset threshold, and the utilization rates of one or more first BRAS devices are all higher than or equal to the preset threshold; alternatively, a second BRAS device with the utilization rate higher than or equal to the preset utilization threshold exists in the one or more second BRAS devices, and the utilization rate lower than the preset utilization threshold exists in the one or more first BRAS devices.
The following describes a method of a BRAS device allocated by a controller as a target account, taking the above-mentioned scenarios one to three as examples.
As shown in fig. 8a, scenario one: the method of the BRAS device assigned to the target account may include the following S801-S805:
s801, the controller determines whether the IP address of the target account is a public network IP address.
S802, when the IP address of the target account is the public network IP address, the controller determines that the target account is accessed to the BRAS equipment accessed by the target account.
And S803, when the IP address of the target account is not the public network IP address, the controller determines whether the BRAS device accessed by the target account is the first BRAS device.
And S804, when the BRAS equipment accessed by the target account is the first BRAS equipment, the controller does not change the BRAS equipment accessed by the target account.
And S805, when the BRAS equipment accessed by the target account is not the first BRAS equipment, the controller allocates any one of one or more first BRAS equipment to the target account.
As shown in fig. 8b, scenario two: the method of assigning a BRAS device to a target account may comprise the following S806:
and S806, the controller allocates a first BRAS device with the lowest resource utilization rate to the target account.
As shown in fig. 8c, the method for allocating a BRAS device to a target account in scenario three may include the following S807-S809:
s807, the controller determines whether the IP address of the target account is a public network IP address.
And S808, when the IP address of the target account is the public network IP address, the controller allocates a second BRAS device with the lowest resource utilization rate to the target account.
And S809, when the IP address of the target account is not the public network IP address, the controller allocates a first BRAS device with the lowest resource utilization rate to the target account.
Therefore, the controller can be divided into a plurality of scenes according to the resource utilization rate of the BRAS equipment, and the BRAS equipment can be conveniently and accurately allocated to the target account by the controller according to the allocation method corresponding to each scene.
In the embodiment of the present application, the server may be divided into the functional units or the functional units according to the above method examples, for example, each functional unit or functional unit may be divided corresponding to each function, or two or more functions may be integrated into two units. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit or a functional unit. The division of the unit or the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in the actual division.
Fig. 9 shows a schematic diagram of a possible structure of the network address translation device involved in the above embodiment. As shown in fig. 9, the network address translation apparatus 90 includes: a receiving unit 901, a determining unit 902 and a transmitting unit 903.
The receiving unit 901 is configured to receive internet request information of a target account, where the internet request information includes a level of the target account. For example, as shown in fig. 5, the receiving unit 901 may be configured to perform S501.
A determining unit 902, configured to determine an IP address of the target account. For example, as shown in fig. 5, the determining unit 902 may be configured to perform S502.
A sending unit 903, configured to forward, when the BRAS device accessed by the target account is a second BRAS device and an IP address of the target account is a private network IP address, the internet access request information and the IP address of the target account to the first target BRAS device, so that the first target BRAS device converts the IP address of the target user into a public network IP address through a configured NAT44 board, and obtains the target data from the network by using the public network IP address of the target user and the internet access request information, where the first target BRAS device is one of one or more first BRAS devices. For example, as shown in fig. 5, the sending unit 903 may be configured to execute S503.
In one possible design, the determining unit 902 is specifically configured to: when the grade of the target account is greater than or equal to the preset grade, determining that the IP address of the target account is a public network IP address; and when the grade of the target account is less than the preset grade, determining the IP address of the target account as a private network IP address.
In one possible design, the sending unit 903 is further configured to: when the BRAS equipment accessed by the target account is first BRAS equipment and the IP address of the target account is a private network IP address, internet surfing request information and the IP address of the target account are sent to the BRAS equipment accessed by the target account, so that the BRAS equipment accessed by the target account obtains target data from a network according to the internet surfing request information and the IP address. For example, as shown in fig. 6, the sending unit 903 may be configured to execute S601.
In one possible design, the determining unit 902 is specifically configured to: determining a first target BRAS device according to the resource utilization rate of one or more first BRAS devices, wherein when the resource utilization rate of the one or more BRAS devices is lower than a first threshold value, the first target BRAS device is determined to be any one of the one or more first BRAS devices; when the BRAS equipment with the resource utilization rate higher than or equal to a first threshold exists in the one or more BRAS equipment, the first target BRAS equipment is determined to be the BRAS equipment with the resource utilization rate lower than the first threshold in the one or more first BRAS equipment.
Optionally, the determining unit 902 is further configured to: the IP address of the target account and the internet access request information are sent to a second target BRAS device, so that the second target BRAS device obtains target data from a network according to the IP address and the internet access request information; the second target BRAS equipment is the BRAS equipment accessed by the target account or the BRAS equipment with the lowest resource utilization rate in the one or more BRAS equipment. For example, as shown in fig. 7, the determining unit 902 may be configured to execute S701.
It is clear to those skilled in the art from the foregoing description of the embodiments that, for convenience and simplicity of description, the foregoing division of each functional unit is merely used as an example, and in practical applications, the above functional network address conversion may be completed by different functional units according to needs, that is, the internal structure of the device may be divided into different functional units to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Embodiments of the present application provide a computer program product including instructions, which, when run on a computer, cause the computer to execute the network address translation method of the above method embodiments.
An embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the network address translation apparatus executes the instructions, the network address translation apparatus executes each step executed by the network address translation apparatus in the method flow shown in the foregoing method embodiment.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a register, a hard disk, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, any suitable combination of the above, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (14)
1. A network address translation method, applied to a network address translation NAT44 architecture, where the NAT44 architecture includes a plurality of broadband access server BRAS devices and a controller communicatively connected to the plurality of BRAS devices, where the plurality of BRAS devices include one or more first BRAS devices and one or more second BRAS devices, the first BRAS devices are configured with one or more NAT44 cards, the second BRAS devices are not configured with NAT44 cards, and the NAT44 card is used to translate private internet protocol IP addresses into public network IP addresses, the method including:
the controller receives internet surfing request information of a target account, wherein the internet surfing request information is used for acquiring target data from a network;
when the BRAS device accessed by the target account is the second BRAS device and the IP address of the target account is a private network IP address, the controller forwards the internet surfing request information and the IP address of the target account to a first target BRAS device, so that the first target BRAS device converts the IP address of the target user into a public network IP address through a configured NAT44 board card, and acquires the target data from a network by using the public network IP address of the target user and the internet surfing request information, wherein the first target BRAS device is one of the one or more first BRAS devices.
2. The method of claim 1, further comprising:
the controller determining a rating of the target account;
and the controller determines the IP address of the target account according to the grade of the target account.
3. The method of claim 2, wherein the controller determines the IP address of the target account based on the rating of the target account, comprising:
when the grade of the target account is greater than or equal to a preset grade, the controller determines that the IP address of the target account is a public network IP address;
and when the grade of the target account is smaller than the preset grade, the controller determines that the IP address of the target account is a private network IP address.
4. The method according to any one of claims 1-3, further comprising:
when the BRAS equipment accessed by the target account is the first BRAS equipment and the IP address of the target account is a private network IP address, the controller sends the Internet surfing request information and the IP address of the target account to the first BRAS equipment accessed by the target account, so that the first BRAS equipment accessed by the target account converts the IP address into a public network IP address, and the target data are obtained from a network according to the Internet surfing request information and the public network IP address.
5. The method according to any one of claims 1-3, further comprising:
the controller determines the first target BRAS equipment according to the resource utilization rate of the one or more first BRAS equipment;
when the resource utilization rate of the one or more first BRAS devices is lower than a first threshold value, the first target BRAS device is any one of the one or more first BRAS devices;
when a first BRAS device with the resource utilization rate higher than or equal to the first threshold exists in the one or more first BRAS devices, the first target BRAS device is the first BRAS device with the resource utilization rate lower than the first threshold in the one or more first BRAS devices.
6. The method according to any one of claims 1-3, further comprising:
when the IP address of the target account is a public network IP address, the controller sends the IP address of the target account and the internet access request information to a second target BRAS device, so that the second target BRAS device obtains the target data from a network according to the IP address and the internet access request information;
when the resource utilization rates of the plurality of BRAS devices are all smaller than a first threshold value, the second target BRAS device is a BRAS device accessed by the target account;
when the BRAS equipment with the resource utilization rate higher than or equal to the first threshold exists in the plurality of BRAS equipment, the second target BRAS equipment is the BRAS equipment accessed by the target account or the second BRAS equipment with the lowest resource utilization rate in the plurality of BRAS equipment.
7. A network address translation apparatus, applied to a network address translation NAT44 architecture, where the NAT44 architecture includes a plurality of broadband access server BRAS devices and a controller communicatively connected to the plurality of BRAS devices, where the plurality of BRAS devices include one or more first BRAS devices and one or more second BRAS devices, the first BRAS devices are configured with one or more NAT44 cards, the second BRAS devices are not configured with NAT44 cards, and the NAT44 card is configured to translate private internet protocol IP addresses into public network IP addresses, the network address translation apparatus includes: a receiving unit, a determining unit and a transmitting unit;
the receiving unit is used for receiving internet access request information of a target account, and the internet access request information is used for acquiring target data from a network;
the sending unit is configured to forward the internet access request information and the IP address of the target account to a first target BRAS device when the BRAS device accessed by the target account is the second BRAS device and the IP address of the target account is a private network IP address, so that the first target BRAS device converts the IP address of the target user into a public network IP address through a configured NAT44 board, and obtains the target data from a network by using the public network IP address of the target user and the internet access request information, where the first target BRAS device is one of the one or more first BRAS devices.
8. The apparatus of claim 7, further comprising: a determination unit to:
determining a rank of the target account;
and determining the IP address of the target account according to the grade of the target account.
9. The apparatus according to claim 8, wherein the determining unit is specifically configured to:
when the grade of the target account is greater than or equal to a preset grade, determining that the IP address of the target account is a public network IP address;
and when the grade of the target account is smaller than the preset grade, determining that the IP address of the target account is a private network IP address.
10. The apparatus according to any of claims 7-9, wherein the sending unit is further configured to:
when the BRAS equipment accessed by the target account is the first BRAS equipment and the IP address of the target account is a private network IP address, the controller sends the Internet surfing request information and the IP address of the target account to the BRAS equipment accessed by the target account, so that the BRAS equipment accessed by the target account converts the IP address into a public network IP address, and the target data are obtained from a network according to the Internet surfing request information and the public network IP address.
11. The apparatus according to any of claims 7-9, wherein the determining unit is further configured to:
determining the first target BRAS equipment according to the resource utilization rate of the one or more first BRAS equipment;
when the resource utilization rate of the one or more BRAS devices is lower than a first threshold value, determining that the first target BRAS device is any one of the one or more BRAS devices;
when the BRAS equipment with the resource utilization rate higher than or equal to the first threshold exists in the one or more BRAS equipment, the first target BRAS equipment is determined to be the BRAS equipment with the resource utilization rate lower than the first threshold in the one or more first BRAS equipment.
12. The apparatus according to any of claims 7-9, wherein the determining unit is further configured to:
when the IP address of the target account is a public network IP address, the controller sends the IP address of the target account and the internet access request information to a second target BRAS device, so that the second target BRAS device obtains the target data from a network according to the IP address and the internet access request information;
when the resource utilization rates of the plurality of BRAS devices are all smaller than a first threshold value, the second target BRAS device is a BRAS device accessed by the target account;
when the BRAS equipment with the resource utilization rate higher than or equal to the first threshold exists in the plurality of BRAS equipment, the second target BRAS equipment is the BRAS equipment accessed by the target account or the BRAS equipment with the lowest resource utilization rate in the plurality of BRAS equipment.
13. A controller, characterized in that the controller comprises: a processor, a communication interface, and a memory; wherein the memory is used to store one or more programs, the one or more programs including computer executable instructions that, when executed by the controller, are executed by the processor to cause the controller to perform the method of any of claims 1-6.
14. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computer, cause the computer to perform the method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210358952.5A CN114710465B (en) | 2022-04-07 | 2022-04-07 | Network address translation method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210358952.5A CN114710465B (en) | 2022-04-07 | 2022-04-07 | Network address translation method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114710465A true CN114710465A (en) | 2022-07-05 |
CN114710465B CN114710465B (en) | 2023-05-02 |
Family
ID=82173798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210358952.5A Active CN114710465B (en) | 2022-04-07 | 2022-04-07 | Network address translation method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114710465B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060002369A1 (en) * | 2004-07-01 | 2006-01-05 | Bce Inc. | Methods and systems for delivery of broadband services to customer premises equipment |
CN103731515A (en) * | 2014-01-15 | 2014-04-16 | 中国联合网络通信集团有限公司 | Internet protocol (IP) source tracing method, device and system |
CN103796245A (en) * | 2012-10-29 | 2014-05-14 | 中兴通讯股份有限公司 | Data message management method, device and system |
CN105245638A (en) * | 2012-04-28 | 2016-01-13 | 华为技术有限公司 | Address distribution method, equipment and system |
CN108259632A (en) * | 2017-05-24 | 2018-07-06 | 新华三技术有限公司 | A kind of CGN implementation methods and device |
CN108933845A (en) * | 2018-06-20 | 2018-12-04 | 新华三技术有限公司 | A kind of public network IP address distribution method and device |
US20190191415A1 (en) * | 2016-08-23 | 2019-06-20 | Nec Corporation | Method, device, and system for managing portal server |
CN110012118A (en) * | 2019-03-08 | 2019-07-12 | 平安科技(深圳)有限公司 | It is a kind of that the method and controller of network address translation NAT service are provided |
CN112422398A (en) * | 2020-12-08 | 2021-02-26 | 中国联合网络通信集团有限公司 | Message transmission method and communication device |
-
2022
- 2022-04-07 CN CN202210358952.5A patent/CN114710465B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060002369A1 (en) * | 2004-07-01 | 2006-01-05 | Bce Inc. | Methods and systems for delivery of broadband services to customer premises equipment |
CN105245638A (en) * | 2012-04-28 | 2016-01-13 | 华为技术有限公司 | Address distribution method, equipment and system |
CN103796245A (en) * | 2012-10-29 | 2014-05-14 | 中兴通讯股份有限公司 | Data message management method, device and system |
CN103731515A (en) * | 2014-01-15 | 2014-04-16 | 中国联合网络通信集团有限公司 | Internet protocol (IP) source tracing method, device and system |
US20190191415A1 (en) * | 2016-08-23 | 2019-06-20 | Nec Corporation | Method, device, and system for managing portal server |
CN108259632A (en) * | 2017-05-24 | 2018-07-06 | 新华三技术有限公司 | A kind of CGN implementation methods and device |
CN108933845A (en) * | 2018-06-20 | 2018-12-04 | 新华三技术有限公司 | A kind of public network IP address distribution method and device |
CN110012118A (en) * | 2019-03-08 | 2019-07-12 | 平安科技(深圳)有限公司 | It is a kind of that the method and controller of network address translation NAT service are provided |
CN112422398A (en) * | 2020-12-08 | 2021-02-26 | 中国联合网络通信集团有限公司 | Message transmission method and communication device |
Non-Patent Citations (2)
Title |
---|
NOKIA SIEMENS NETWORKS, NOKIA: "S2-094575 \"IP connectivity issues in Local IP access\"" * |
刘甫琴;: "NAT公网转私网的网络优化改造" * |
Also Published As
Publication number | Publication date |
---|---|
CN114710465B (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109561141B (en) | CDN node selection method and equipment | |
CN108449282B (en) | Load balancing method and device | |
CN109547286B (en) | CDN node selection method, device and storage medium | |
CN107809386B (en) | IP address translation method, routing device and communication system | |
CN112351115B (en) | Port prediction method and device of symmetric NAT equipment | |
US20240048477A1 (en) | Packet forwarding method, apparatus, and system, and computer-readable storage medium | |
CN104394242A (en) | IP (internet protocol) address allocation method and device | |
CN112398845A (en) | Data transmission method, data transmission device, data transmission system and electronic equipment | |
CN109819064B (en) | Method for communication between modules, operating system module and conference panel | |
CN108667957B (en) | IP address allocation method, first electronic device and first server | |
CN110636149B (en) | Remote access method, device, router and storage medium | |
CN110708293B (en) | Method and device for distributing multimedia service | |
CN110933128B (en) | Node traffic scheduling method and device, electronic equipment and storage medium | |
CN114710465B (en) | Network address translation method, device, equipment and storage medium | |
JP2022533639A (en) | Method, apparatus, apparatus and storage medium for determining edge applications | |
CN109862134A (en) | A kind of the lease time configuration method and system of IP address | |
CN112929277B (en) | Message processing method and device | |
CN111586434B (en) | Load balancing method based on edge device and distributed mixed screen server | |
CN110636146B (en) | User address allocation method and device | |
CN115208857A (en) | Address allocation method, device and equipment | |
CN113472907A (en) | Network access method, router, electronic device and computer readable medium | |
CN105430044A (en) | Router adaptive recommendation method | |
WO2023216584A1 (en) | Method for obtaining application-aware network identifier and related device | |
JP2011130194A (en) | Ip address allocation apparatus, auxiliary device, ip address allocation system, ip address allocation method, and program | |
CN117834588A (en) | Virtual machine metadata acquisition method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |