WO2021135493A1 - Method and apparatus for accessing home gateway, system processor and storage medium - Google Patents
Method and apparatus for accessing home gateway, system processor and storage medium Download PDFInfo
- Publication number
- WO2021135493A1 WO2021135493A1 PCT/CN2020/120451 CN2020120451W WO2021135493A1 WO 2021135493 A1 WO2021135493 A1 WO 2021135493A1 CN 2020120451 W CN2020120451 W CN 2020120451W WO 2021135493 A1 WO2021135493 A1 WO 2021135493A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- address
- home gateway
- destination
- access
- mac address
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000004044 response Effects 0.000 claims abstract description 76
- 230000004048 modification Effects 0.000 claims description 5
- 238000012986 modification Methods 0.000 claims description 5
- 238000003672 processing method Methods 0.000 claims 3
- 238000012545 processing Methods 0.000 description 24
- 230000008569 process Effects 0.000 description 12
- 238000006243 chemical reaction Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 230000009466 transformation Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- 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
-
- 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/50—Address allocation
-
- 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/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
Definitions
- This application relates to the field of communications, and specifically to a method and device for accessing a home gateway.
- a home gateway is a network device located inside a modern home. Its function is to enable home users to connect to the Internet, so that multiple smart devices located in the home can obtain Internet services, or enable these smart devices to communicate with each other. To put it simply, the home gateway is a bridge that connects a variety of smart devices within the home, as well as from the home to the external network. From a technical point of view, the home gateway implements bridging/routing, protocol conversion, address management and conversion inside the home and from inside to outside, assumes the role of firewall, and provides possible voice/video services.
- the home gateway works in bridge mode, and the user connects The incoming user equipment obtains the public network address. At this time, it is a different network segment address from the LAN (local area network) side private network address of the home gateway.
- the LAN side device accesses the private network address (gateway address) of the home gateway.
- the public network address of the user equipment does not belong to the same network segment and cannot directly communicate with each other.
- the existing access is through the IP address acquisition method of the network card of the user's access device is changed from the automatic acquisition method to the static configuration method.
- the configured IP address is the address of the same network segment as the private network address of the home gateway.
- the embodiments of the present application provide a home gateway access method and device to at least solve the problem that the home gateway in the related art works in the bridge mode, and the user access device obtains the public network address, which is located at the private network address of the home gateway. In different network segments, users cannot access the home gateway.
- an access response method is provided, which is applied to a home gateway working in a bridge mode, and includes: receiving an access message sent by a user equipment, the access message includes a first source IP address, and a first source IP address. A destination IP address and a first destination MAC address; if the first destination IP address is the home gateway IP address, the first destination MAC address is modified to the MAC address corresponding to the home gateway.
- a home gateway working in bridge mode including a receiving module for receiving an access message sent by a user equipment.
- the access message includes a first source IP address and a first destination. IP address and a first destination MAC address; the home network also includes a method for modifying the destination MAC address to the MAC address corresponding to the home gateway when the first destination IP address is the home gateway IP address.
- the address modification module of, and a response module used to construct a response message and send the response message to the user equipment.
- a home gateway access method for accessing a home gateway working in a bridge mode.
- the method includes: sending an access message to the home gateway, wherein the access The message includes a first source IP address, a first destination IP address, and a first destination MAC address; in the case that the first destination IP address is the home gateway IP address, the receiving home gateway sends the destination MAC address A response message modified to the MAC address corresponding to the home gateway; access to the home gateway according to the response message.
- a user equipment for accessing a home gateway working in a bridge mode
- the user equipment includes: a data sending module for sending access messages to the home gateway, Wherein, the access message includes a first source IP address, a first source MAC address, a first destination IP address, and a first destination MAC address; the response receiving module is used to specify that the first destination IP address is the IP address of the home gateway In the case of an address, a response message in which the home gateway modifies the destination MAC address to the MAC address corresponding to the home gateway is received; the access module is configured to access the home gateway according to the response message.
- a home gateway access system including a home gateway working in a bridge mode and a user equipment, wherein the user equipment sends an access message to the home gateway, wherein the access message Includes the first source IP address, the first source MAC address, the first destination IP address and the first destination MAC address; if the first destination IP address is the home gateway IP address, the home gateway will set the first destination The MAC address is modified to the MAC address corresponding to the home gateway; the home gateway constructs a response message, and sends the response message to the user equipment; the user equipment accesses the home gateway according to the response message.
- a storage medium including a stored program, wherein the program executes any of the above-mentioned methods when the program runs.
- a processor is also provided, the processor is configured to run a program, wherein the method executes any one of the above methods when the program is running.
- Fig. 1 is a flowchart of a home gateway access method according to an embodiment of the present application
- Fig. 2 is a flowchart of a home gateway access method according to the first embodiment of the present application
- FIG. 3 is a configuration diagram of a home gateway according to a home gateway access method according to the first embodiment of the present application
- Fig. 4 is a flowchart of a home gateway access method according to the first embodiment of the present application.
- FIG. 5 is a flowchart of the home gateway access method according to the first embodiment of the present application, taking TCP access as an example;
- Fig. 6 is a configuration diagram of a home gateway according to a home gateway access method according to the second embodiment of the present application.
- Fig. 7 is a flowchart of a home gateway access method according to the second embodiment of the present application.
- FIG. 8 is a flowchart of the home gateway access method according to the second embodiment of the present application, taking TCP access as an example
- Fig. 9 is a schematic structural diagram of a home gateway according to an embodiment of the present application.
- Fig. 10 is a schematic structural diagram of a user equipment according to an embodiment of the present application.
- an access method running on the above-mentioned home gateway is provided as shown in FIG. 1, including the user equipment sending an access message to the home gateway.
- the access message includes a first source IP address, a first source MAC address, and a first source MAC address.
- the home gateway modifies the destination MAC address to the MAC address corresponding to the home gateway; the home gateway constructs a response message, and sends the response message to all Mentioned user equipment.
- FIG. 1 is a flowchart of an access process according to an embodiment of the present application. As shown in FIG. 1, the process includes the following steps.
- the user equipment sends an access message to the home gateway, where the access message includes a first source IP address, a first destination IP address, and a first destination MAC address.
- the user equipment obtains the public network address (for example: 10.20.30.x), and its gateway is the upper device of the home gateway, which is not in the same network segment as the home gateway address.
- the home gateway user device initiates a pairing For access to the home gateway IP address (for example: 192.168.1.1), the message will be directly forwarded to the external network and cannot be sent to the home gateway for processing.
- the home gateway driver module completes the initial configuration shown in Figure 3 when it is powered on.
- the driver module generates internal rules and sends the access message with the destination IP address to the home gateway address to the protocol stack, otherwise the driver will directly forward it according to the chip hardware.
- routing module construct a routing rule from the source IP address to the user side according to the content of the message analyzed by the packet interception module, and configure the routing to generate routing entries.
- the special processing before forwarding by the home gateway is added.
- the message sent by the home gateway user equipment reaches the home gateway and first receives the packet through the driver module.
- the home gateway modifies the destination MAC address to the MAC address corresponding to the home gateway; in some embodiments, the driver module finds that the packet is received
- the first destination IP of the access message is the IP address of the home gateway (for example: 192.168.1.1), it is not directly forwarded by hardware, but is sent to the protocol stack for processing.
- the packet interception module of the home gateway protocol stack parses the access message, determines if the destination address is the home gateway address, and sends it to the address conversion module.
- Address conversion modifies the first destination MAC address of the access message to the MAC address corresponding to the home gateway, and records the first source MAC address.
- the message is sent from the layer 2 protocol stack to the home gateway itself for processing, and enters the layer 3 protocol stack for processing .
- the packet interception module construct a routing rule from the first source IP address to the user-side device, configure the route to generate a routing entry, for example, when the first source IP address is 192.168.1.x, configure a route 192.168.1.0/24 points to the route of br0.
- the method also includes the following steps.
- the home gateway constructs a response message and sends the response message to the user equipment; in some embodiments, as shown in FIG. 4, this step includes that the home gateway is configured in the three-layer protocol stack according to the first destination IP address. Send it to the corresponding service module for processing. The home gateway processes this message, constructs a response message and returns it.
- the home gateway performs route processing after finding this route, and the response message is forwarded to the LAN-side user equipment.
- the address conversion module modifies the second source MAC address of the response message to the first destination MAC address in the original access message sent by the user equipment, that is, the source MAC address recorded in step S201.
- the user equipment on the LAN side After receiving the response message, the user equipment on the LAN side causes the access to continue, initiates subsequent interactive messages, and realizes the access of the user equipment on the LAN side to the home gateway.
- the processing flow of the TCP message interaction message of the user equipment accessing the home gateway of this application First, the user equipment performs the TCP handshake access message (SYN message) for accessing the home gateway. ), the driver hardware interrupts the receipt of this message, puts this message on the protocol stack, the protocol stack analyzes the content of the message, and judges whether the destination IP address carried in the TCP message is the home gateway address, if it is the MAC address of the home gateway , Modify the destination MAC of the access message to the MAC address of the home gateway.
- SYN message TCP handshake access message
- the protocol stack data packet processing function determines that the destination MAC address of the message is the home gateway's own MAC address, enters the IP layer for processing, and the home gateway generates a response message (SYN ACK message) according to business access.
- the message is processed by the routing module, the routing entry is found, and the message is sent to the user access device on the LAN side.
- the user equipment continues to perform the third packet (ACK packet) of the TCP handshake to access the home gateway, and also modifies the destination MAC through the home gateway to complete the TCP handshake and establish a connection.
- ACK packet third packet of the TCP handshake
- the subsequent interactive messages such as the processing of the TCP GET message and the data message perform the same actions as the above process, which completes the entire access process of the user equipment to the home gateway.
- FIG. 7 is a flow chart of the access process according to an embodiment of the present application. As shown in FIG. 7, the flow is Including the following steps.
- the user equipment sends an access message to the home gateway, where the youth access message includes a first source IP address, a first source MAC address, a first destination IP address, and a first destination MAC address.
- the user equipment when the home gateway is in the bridge mode, the user equipment initiates access to the home gateway address, and the message is directly forwarded to the external network and cannot be sent to the home gateway for processing.
- the home gateway completes the configuration shown in Figure 6 when it is powered on.
- the driver module generates internal rules and sends the access message with the destination IP address to the home gateway address to the protocol stack, otherwise the driver will directly forward it according to the chip hardware.
- the interception processing module generates access message matching conditions and transformation content, transforms the first destination MAC and first IP address of the access message, and returns the response The packets on the LAN side undergo a destination address conversion.
- the access message sent by the home gateway user equipment includes the source IP address, the source MAC address, the destination IP address and the destination MAC address, and the packet is first received by the driver module when it reaches the home gateway.
- the first source IP carried in the access message sent by the user equipment is: 10.46.xx, which is the public IP address obtained by the user, to access 192.168.1.1, which is the first address in the access message Destination IP address.
- the protocol stack parses the access message, determines if the destination address is the home gateway address, records the first source MAC address of the access message, and modifies the first destination MAC address of the access message to the MAC address corresponding to the home gateway At the same time, the first source IP address is transformed into the IP address of the private network segment of the home gateway, and the first source IP of this access request is transformed into the IP address of the private network segment of the home gateway, such as: 192.168.1.3, so It becomes: 192.168.1.3 access 192.168.1.1.
- the message is referred to the home gateway for processing in the second layer protocol stack, and enters the third layer protocol stack for processing.
- the first destination IP address is sent to the local processing flow, and the local service module constructs a response message and returns it.
- the home gateway constructs a response message and sends the response message to the user equipment; the home gateway transforms the response message in the address change module, and combines the transformation rules to transform the second source MAC address in the response message It is converted into the first destination MAC address of the access message sent by the user equipment, and the destination IP address in the response message is converted into the first source IP address carried in the access message sent by the user equipment, such as 10.46.xx, this
- the IP address is the address of the LAN-side device, and the LAN-side device can receive and process this message.
- the user equipment on the LAN side can continue to initiate subsequent interaction messages to realize the access of the user equipment on the LAN side to the home gateway.
- the user equipment accesses the home gateway TCP message interaction message processing: first, the user equipment performs the TCP handshake access message (SYN message) for accessing the home gateway
- the driver hardware interrupts the received message, extracts the message and sends it to the protocol stack.
- the protocol stack analyzes the content of the message and judges that the destination IP address of the TCP message is the address of the home gateway.
- the destination MAC of the message is modified to the MAC address of the home gateway, and the source IP address of the message is converted to the IP address of the private network segment of the home gateway.
- the destination IP address of the response message is changed to the source IP address used by the LAN side device when it comes up according to the rules, and the message is sent to the LAN side user device.
- the user equipment continues with the third packet (ACK packet) of the TCP handshake to access the home gateway, and also completes the TCP handshake and establishes the connection after the home gateway modifies the destination MAC and special firewall rules to modify the IP address.
- ACK packet the third packet of the TCP handshake
- the subsequent interactive messages such as the processing of the TCP GET message and the data message perform the same actions as the above process, which completes the entire access process of the user equipment to the home gateway.
- the problem that the home gateway works in bridge mode the user accesses the device to obtain the public network address, and the private network address of the home gateway is on a different network segment, and the user cannot access the home gateway. Access to the home gateway from the user equipment on the LAN side.
- the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
- the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in each embodiment of the present application.
- a home gateway is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated.
- the term "module” can implement a combination of software and/or hardware with predetermined functions.
- the devices described in the following embodiments are preferably implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
- Fig. 9 is a schematic structural diagram of a home gateway according to an embodiment of the present application. As shown in Fig. 9, the device includes the following modules.
- the receiving module is configured to receive an access message sent by the user equipment, and the access message includes a source IP address, a source MAC address, a destination IP address, and a destination MAC address.
- the address modification module is used to modify the destination MAC address to the MAC address corresponding to the home gateway when the destination IP address is the home gateway IP address.
- the response module is used to construct a response message and send the response message to the user equipment.
- the device in addition to all the modules shown in FIG. 9, the device also includes a route analysis module for constructing a route from the first source IP address to the user according to the content of the access message. Side routing rules.
- the response module in the home gateway also includes an address recovery module, which is used to modify the second source MAC address to the first destination MAC address; and a forwarding module, which is used to transfer the response according to the routing rule The message is sent to the user equipment.
- the address conversion module in the device further includes an IP address conversion module, configured to convert the first source IP address into an IP address of the private network segment of the home gateway.
- the device also includes an address recovery module, which is used to modify the second source MAC address carried in the response message to the first destination MAC address in the original access message, and the response message The second destination IP address carried in the text is modified to the first source IP address carried in the original access message.
- an address recovery module which is used to modify the second source MAC address carried in the response message to the first destination MAC address in the original access message, and the response message The second destination IP address carried in the text is modified to the first source IP address carried in the original access message.
- It also includes a forwarding module, configured to send the response message to the user equipment according to the modified second destination IP address in the response message.
- a user equipment is also provided, and the user equipment is used to access a home gateway working in a bridge mode to implement the above-mentioned embodiments and preferred implementations, and those that have been explained will not be repeated.
- the term "module" can implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, implementation by hardware or a combination of software and hardware is also possible and conceived.
- FIG. 10 is a structural block diagram of a home gateway according to an embodiment of the present application.
- the device includes: a data sending module for sending an access message to the home gateway, wherein the access message includes the first A source IP address, a first source MAC address, a first destination IP address and a first destination MAC address.
- the response receiving module is configured to receive a response message in which the home gateway modifies the destination MAC address to the MAC address corresponding to the home gateway when the destination IP address is the IP address of the home gateway.
- the access module is used to access the home gateway according to the response message.
- the embodiment of the present application also provides a storage medium, the storage medium includes a stored program, wherein the execution of the method described in the above embodiment when the above program runs includes: receiving an access message sent by a user equipment, the access The message includes a source IP address, a source MAC address, a destination IP address, and a destination MAC address; when the destination IP address is the home gateway IP address, the destination MAC address is modified to the MAC corresponding to the home gateway Address; construct a response message, and send the response message to the user equipment.
- the above-mentioned storage medium may be configured to store program codes for executing the following steps.
- a routing rule from the destination IP address to the user side is constructed, and the source MAC address is modified to the destination MAC address; according to the routing rule, the response is reported
- the document is sent to the user equipment.
- the storage medium is further configured to store program code for performing the following steps: before constructing the response message, the source IP address is converted into the IP address of the private network segment of the home gateway.
- Sending the response message to the user equipment also includes modifying the source MAC address to the destination MAC address; modifying the destination IP address to the source IP address; according to the source IP address, The response message is sent to the user equipment.
- the above-mentioned storage medium may include, but is not limited to: U disk, Read-Only Memory (Read-Only Memory, ROM for short), Random Access Memory (Random Access Memory, RAM for short) ), mobile hard drives, magnetic disks or optical discs and other media that can store program codes.
- U disk Read-Only Memory
- ROM Read-Only Memory
- RAM Random Access Memory
- mobile hard drives magnetic disks or optical discs and other media that can store program codes.
- the embodiment of the present application also provides a processor, which is used to run a program, wherein the program executes the steps in any one of the above-mentioned methods when the program is running.
- the above procedure is used to execute the following steps.
- the access message includes a source IP address, a source MAC address, a destination IP address, and a destination MAC address; when the destination IP address is the home gateway IP address, the The destination MAC address is modified to the MAC address corresponding to the home gateway; a response message is constructed, and the response message is sent to the user equipment.
- the home gateway intercepts such a message and determines whether the destination IP address of the message is a home For the private network address of the gateway, the destination MAC address of the message is modified to the MAC address of the home gateway, so that the protocol stack of the home gateway processes this kind of message at the third layer and constructs a response message. Dynamically configure routing rules on the home gateway according to the content of the user equipment to access the message or change the destination MAC and source IP address at the same time when using data packet conversion.
- the constructed message is routed according to the routing entry or the destination IP address changes to make the message arrive
- the LAN-side device can complete the TCP three-way handshake and GET data and other business access messages in some implementations, so as to solve the problem that the home gateway works in the bridge mode in the related technology, and the user access device obtains
- the problem is that the public network address is in a different network segment from the private network address of the home gateway, and the user cannot access the home gateway, so that the LAN side user equipment can access the home gateway.
- modules or steps of this application can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed in a network composed of multiple computing devices.
- they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device for execution by the computing device, and in some cases, they can be different from here.
- the steps shown or described are executed in the order of, or they are respectively fabricated into individual integrated circuit modules, or multiple modules or steps of them are fabricated into a single integrated circuit module to achieve. In this way, this application is not limited to any specific combination of hardware and software.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
Claims (14)
- 一种访问处理方法,应用于工作在桥模式下的家庭网关,其中,包括以下步骤:An access processing method applied to a home gateway working in bridge mode, which includes the following steps:接收用户设备发送的访问报文,所述访问报文中包括第一源IP地址、第一目的IP地址和第一目的MAC地址;Receiving an access message sent by the user equipment, the access message including a first source IP address, a first destination IP address, and a first destination MAC address;在所述第一目的IP地址为所述家庭网关IP地址的情况下,将所述第一目的MAC地址修改为所述家庭网关对应的MAC地址。In the case where the first destination IP address is the IP address of the home gateway, the first destination MAC address is modified to the MAC address corresponding to the home gateway.
- 如权利要求1所述方法,其中,所述方法还包括,构建应答报文,将所述应答报文发送至所述用户设备。The method according to claim 1, wherein the method further comprises constructing a response message, and sending the response message to the user equipment.
- 如权利要求2所述方法,其中,所述应答报文发送至所述用户设备还包括:The method according to claim 2, wherein the sending of the response message to the user equipment further comprises:根据解析所述访问报文的内容,构建从所述第一源IP地址到所述用户设备的路由规则。Constructing a routing rule from the first source IP address to the user equipment according to parsing the content of the access message.
- 如权利要求3所述方法,其中,所述应答报文中包括第二源MAC地址,将所述应答报文发送至所述用户设备还包括:The method according to claim 3, wherein the response message includes a second source MAC address, and sending the response message to the user equipment further comprises:将所述第二源MAC地址修改为所述第一目的MAC地址;Modify the second source MAC address to the first destination MAC address;根据所述路由规则,将所述应答报文发送至所述用户设备。According to the routing rule, the response message is sent to the user equipment.
- 如权利要求2所述方法,其中,所述构建应答报文之前,所述方法还包括:3. The method according to claim 2, wherein, before the constructing the response message, the method further comprises:将所述第一源IP地址变换成家庭网关私网网段的IP地址。The first source IP address is transformed into an IP address of the private network segment of the home gateway.
- 如权利要求4所述方法,其中,所述应答报文中包括第二源MAC地址,第二目的IP地址,将所述应答报文发送至所述用户设备还包括:The method according to claim 4, wherein the response message includes a second source MAC address and a second destination IP address, and sending the response message to the user equipment further comprises:将所述第二源MAC地址修改为所述第一目的MAC地址;Modify the second source MAC address to the first destination MAC address;将所述第二目的IP地址修改为所述第一源IP地址;Modify the second destination IP address to the first source IP address;根据修改后的第二目的IP地址,将所述应答报文发送至所述用户设备。Send the response message to the user equipment according to the modified second destination IP address.
- 一种工作在桥模式下的家庭网关,其中,包括:A home gateway working in bridge mode, which includes:接收模块,用于接收用户设备发送的访问报文,所述访问报文中包括第一源IP地址,第一源MAC地址,第一目的IP地址和第一目的MAC地址;A receiving module, configured to receive an access message sent by a user equipment, the access message including a first source IP address, a first source MAC address, a first destination IP address, and a first destination MAC address;地址修改模块,当所述第一目的IP地址为所述家庭网关IP地址时,用于将所述第一目的MAC地址修改为所述家庭网关对应的MAC地址。The address modification module is used to modify the first destination MAC address to the MAC address corresponding to the home gateway when the first destination IP address is the home gateway IP address.
- 如权利要求7所述的家庭网关,其中,所述家庭网关还包括:The home gateway of claim 7, wherein the home gateway further comprises:应答模块,用于构建应答报文,将所述应答报文发送至所述用户设备。The response module is used to construct a response message and send the response message to the user equipment.
- 一种家庭网关访问方法,用于访问工作在桥模式下的家庭网关,其中,所述方法包括:A home gateway access method for accessing a home gateway working in bridge mode, wherein the method includes:将访问报文发送至家庭网关,其中,所述访问报文中包括第一源IP地址,第一目的IP地址和第一目的MAC地址;Sending an access message to the home gateway, where the access message includes a first source IP address, a first destination IP address, and a first destination MAC address;在所述第一目的IP地址为所述家庭网关IP地址的情况下,接收家庭网关将所述第一目的MAC地址修改为所述家庭网关对应的MAC地址后的应答报文;In the case that the first destination IP address is the IP address of the home gateway, receiving a response message in which the home gateway modifies the first destination MAC address to the MAC address corresponding to the home gateway;根据所述应答报文,对所述家庭网关进行访问。According to the response message, the home gateway is accessed.
- 一种用户设备,用于访问工作在桥模式下的家庭网关,其中,所述用户设备包括:A user equipment for accessing a home gateway working in a bridge mode, wherein the user equipment includes:数据发送模块,用于将访问报文发送至家庭网关,其中,所述访问报文中包括第一源IP地址,第一目的IP地址和第一目的MAC地址;A data sending module, configured to send an access message to the home gateway, where the access message includes a first source IP address, a first destination IP address, and a first destination MAC address;应答接收模块,用于在所述第一目的IP地址为所述家庭网关IP地址的情况下,接收家庭网关将所述第一目的MAC地址修改为所述家庭网关对应的MAC地址后的应答报文;A response receiving module, configured to receive a response report from the home gateway after the first destination MAC address is modified to the MAC address corresponding to the home gateway when the first destination IP address is the IP address of the home gateway Text访问模块,用于根据所述应答报文,对所述家庭网关进行访问。The access module is used to access the home gateway according to the response message.
- 一种家庭网关访问方法,其中:A home gateway access method, where:用户设备向家庭网关发送访问报文,其中,所述访问报文中包括第一源IP地址,第一目的IP地址和第一目的MAC地址;The user equipment sends an access message to the home gateway, where the access message includes a first source IP address, a first destination IP address, and a first destination MAC address;在所述第一目的IP地址为所述家庭网关IP地址的情况下,所述家庭网关将将所述目的MAC地址修改为所述家庭网关对应的MAC地址。In the case that the first destination IP address is the IP address of the home gateway, the home gateway will modify the destination MAC address to the MAC address corresponding to the home gateway.
- 如权利要求11所述家庭网关访问方法,其中,The home gateway access method of claim 11, wherein:所述家庭网关构建应答报文,将所述应答报文发送至所述用户设备;Constructing a response message by the home gateway, and sending the response message to the user equipment;所述用户设备根据所述应答报文对所述家庭网关进行访问。The user equipment accesses the home gateway according to the response message.
- 一种存储介质,其中,所述存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至5中任一项所述的访问处理方法,或权利要求9或11所述的访问方法。A storage medium, wherein the storage medium includes a stored program, wherein the access processing method according to any one of claims 1 to 5 or the access according to claim 9 or 11 is executed when the program is running. method.
- 一种处理器,其中,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至5中任一项所述的访问处理方法,或权利要求9或11所述的访问方法。A processor, wherein the processor is used to run a program, wherein the access processing method according to any one of claims 1 to 5 or the access method according to claim 9 or 11 is executed during the running .
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911425858.1A CN113132218B (en) | 2019-12-31 | 2019-12-31 | Home gateway access method, device, system processor and storage medium |
CN201911425858.1 | 2019-12-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021135493A1 true WO2021135493A1 (en) | 2021-07-08 |
Family
ID=76687254
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/120451 WO2021135493A1 (en) | 2019-12-31 | 2020-10-12 | Method and apparatus for accessing home gateway, system processor and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113132218B (en) |
WO (1) | WO2021135493A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112235175B (en) * | 2020-09-01 | 2022-03-18 | 深圳市共进电子股份有限公司 | Access method and access device of network bridge equipment and network bridge equipment |
CN117812117A (en) * | 2022-09-30 | 2024-04-02 | 华为技术有限公司 | Data transmission system, data transmission method and networking equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101577722A (en) * | 2009-06-03 | 2009-11-11 | 中兴通讯股份有限公司 | Method for realizing MAC forced forwarding function and device |
US20130346629A1 (en) * | 2012-06-26 | 2013-12-26 | Cisco Technology, Inc. | Determining the type of upstream network address translation from a home gateway |
CN103546286A (en) * | 2012-07-13 | 2014-01-29 | 中兴通讯股份有限公司 | Authentication processing method and device |
CN104618241A (en) * | 2015-01-14 | 2015-05-13 | 杭州华三通信技术有限公司 | Transmission method and device for three-layer message |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007016809A1 (en) * | 2005-08-05 | 2007-02-15 | Zte Corporation | A managing method of bridging device |
CN100571199C (en) * | 2005-12-16 | 2009-12-16 | 华为技术有限公司 | The method of a kind of home gateway and guarantee in-home network service terminal QoS |
CN101052009B (en) * | 2007-05-14 | 2010-08-18 | 中兴通讯股份有限公司 | Method for realizing internal access by NAT device for private net element using public net address |
CN101360030B (en) * | 2008-08-21 | 2011-10-05 | 华为技术有限公司 | Method for private network customer to access public network using public network address |
CN103856436B (en) * | 2012-11-28 | 2017-12-05 | 中国电信股份有限公司 | Method, home gateway and the Internet of selecting network by user equipment layer protocol |
CN103475750B (en) * | 2013-09-16 | 2017-05-10 | 新华三技术有限公司 | Address translation method and equipment suitable for multi-export network |
KR101901341B1 (en) * | 2014-04-07 | 2018-09-27 | 한국전자통신연구원 | Method and apparatus for supporting mobility of user equipment |
CN104301451B (en) * | 2014-10-17 | 2019-03-01 | 福建星网锐捷网络有限公司 | A kind of cross-network segment host communication method, apparatus and system |
CN105763592A (en) * | 2014-12-19 | 2016-07-13 | 中兴通讯股份有限公司 | Cluster internal and external data interaction method, cluster gateway and source device |
CN107070691B (en) * | 2017-01-12 | 2020-01-21 | 阿里巴巴集团控股有限公司 | Cross-host communication method and system of Docker container |
CN109151084A (en) * | 2017-06-15 | 2019-01-04 | 中兴通讯股份有限公司 | File transmitting method and device, system, CGN equipment |
CN110365557B (en) * | 2018-03-26 | 2021-11-02 | 中兴通讯股份有限公司 | Network interconnection method and device |
-
2019
- 2019-12-31 CN CN201911425858.1A patent/CN113132218B/en active Active
-
2020
- 2020-10-12 WO PCT/CN2020/120451 patent/WO2021135493A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101577722A (en) * | 2009-06-03 | 2009-11-11 | 中兴通讯股份有限公司 | Method for realizing MAC forced forwarding function and device |
US20130346629A1 (en) * | 2012-06-26 | 2013-12-26 | Cisco Technology, Inc. | Determining the type of upstream network address translation from a home gateway |
CN103546286A (en) * | 2012-07-13 | 2014-01-29 | 中兴通讯股份有限公司 | Authentication processing method and device |
CN104618241A (en) * | 2015-01-14 | 2015-05-13 | 杭州华三通信技术有限公司 | Transmission method and device for three-layer message |
Also Published As
Publication number | Publication date |
---|---|
CN113132218B (en) | 2023-10-20 |
CN113132218A (en) | 2021-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11451510B2 (en) | Method and apparatus for processing service request | |
US8861522B2 (en) | Method for providing an internal server with reduced IP addresses | |
CA2421665C (en) | Wireless provisioning device | |
US7970878B1 (en) | Method and apparatus for limiting domain name server transaction bandwidth | |
JP2002502152A (en) | Proxy server for TCP / IP network address mobile terminal | |
US9065684B2 (en) | IP phone terminal, server, authenticating apparatus, communication system, communication method, and recording medium | |
US10454880B2 (en) | IP packet processing method and apparatus, and network system | |
US20190215308A1 (en) | Selectively securing a premises network | |
CN105430059A (en) | Smart client routing | |
WO2020011152A1 (en) | Pfcp connection processing method and apparatus, network element, system, and storage medium | |
WO2021135493A1 (en) | Method and apparatus for accessing home gateway, system processor and storage medium | |
WO2021196568A1 (en) | Traffic flow proxy method, server, and storage medium | |
WO2018149342A1 (en) | Public network accessing method and device and computer storage medium for user terminal of mobile private network | |
WO2016050109A1 (en) | Communication method, cloud management server and virtual switch | |
KR101083480B1 (en) | Virtual connectivity with subscribe-notify service | |
CN109600292A (en) | A kind of LAC router initiates the method and system of L2TP Tunnel connection from dialing | |
US20110276673A1 (en) | Virtually extending the functionality of a network device | |
US11968237B2 (en) | IPsec load balancing in a session-aware load balanced cluster (SLBC) network device | |
WO2024016593A1 (en) | Edge node access method and apparatus | |
CN113472625B (en) | Transparent bridging method, system, equipment and storage medium based on mobile internet | |
US8285853B2 (en) | Message and system for implementing the inter-access of stack members | |
US11381544B2 (en) | Service type determining method and related device | |
US20210203604A1 (en) | Load balancing method, device and system | |
CN115022178A (en) | Network card switching method and device, electronic equipment and readable storage medium | |
CN114666846A (en) | Communication method and gateway equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20909207 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20909207 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14/02/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20909207 Country of ref document: EP Kind code of ref document: A1 |