A method for router to realize IPv6 bridge communication through hybrid bridge mode

The hybrid bridge ipv6 bridge communication method solves the problem of the router not being assigned a pd by the upper device in the ipv6 network, and realizes the effective support and simplified deployment of ipv6 communication

CN119449708BActive Publication Date: 2025-09-30MICRONET UNION TECH (CHENGDU) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411628347.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-09-30
Estimated Expiration
2044-11-14

AI Technical Summary

Technical Problem

In the prior art, a router in an IPv6 network has a problem in which an upper-level device does not allocate a PD or allocates an invalid PD, resulting in an inability to perform IPv6 routing communication.

Method used

Adopt hybrid bridge mode, judge and copy IPv6 messages through WAN and LAN ports, use bridge and IP protocol stack to perform Layer 2 bridge forwarding, avoid repeated transmission, directly obtain LAN side site address, and turn off IPv6 routing forwarding function.

Benefits of technology

It effectively supports IPv6 communication even when the upper-level device does not support PD allocation, simplifies IPv6 deployment, and reduces deployment complexity and resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449708B_ABST
    Figure CN119449708B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for implementing IPv6 bridge communication via a hybrid bridge mode on a router, belonging to the field of communications. When a wide area network (WAN) port or WAN port.N determines that a received IPv6 message is a WAN.ipv6 message, the WAN port sends the IPv6 message to a bridge via the WAN.ipv6 port or WAN port.N and the IP.ipv6 port.N, and simultaneously sends the message to an IP protocol stack. The bridge determines whether to forward the message to a port on a local area network (LAN) side by querying a MAC table. The LAN port or LAN port.N receives the IPv6 message and sends it to the bridge. The bridge forwards the IPv6 message to the WAN port or WAN port.N via the WAN.ipv6 port or WAN.ipv6 port.N, and the bridge simultaneously forwards the IPv6 message to the IP protocol stack. The present invention allows the operation of an IPv6 network without deploying a PD, effectively reducing the complexity of IPv6 deployment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a method for a router to realize IPv6 bridge communication through a hybrid bridge mode. Background Art

[0002] Currently, routers implement IPv6 communication through IPv6 routing and forwarding, forwarding IPv6 packets from the WAN to the LAN and vice versa. Before IPv6 routing and forwarding, the router's upstream device (optical modem) assigns a PD to the router. The router then assigns IPv6 addresses to sites on the LAN based on the PD. These sites and the router then communicate using IPv6 addresses. However, IPv6 networks are still immature, and the following issues exist: 1. The upstream device may not assign a PD to the router, preventing the router from assigning addresses to sites and enabling IPv6 routing; 2. The PD assigned by the upstream device to the router is invalid, resulting in sites being able to assign IPv6 addresses but unable to communicate via IPv6 routing. Therefore, addressing these issues is a pressing issue. Summary of the Invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method for a router to realize IPv6 bridge communication through a hybrid bridge mode, thereby solving the shortcomings of the prior art.

[0004] The object of the present invention is achieved by the following technical solution: a method for a router to realize IPv6 bridge communication through a hybrid bridge mode, the method comprising:

[0005] IPv6 message from WAN side to LAN side: When the WAN port or WAN port.N determines that the received message is an IPv6 message, the WAN port sends the IPv6 message to the bridge through WAN.ipv6 port or WAN port.N and sends it to the IP protocol stack at the same time. The bridge determines whether to forward the message to the port on the LAN side by querying the MAC table;

[0006] IPv6 packets from the LAN side to the WAN side: The LAN port or LAN port.N receives the IPv6 packet and sends it to the bridge. The bridge forwards the IPv6 packet to the WAN port or WAN port.N through the WAN.ipv6 port or WAN.ipv6 port.N. At the same time, the bridge forwards the IPv6 packet to the IP protocol stack.

[0007] The IPv6 message from the wide area network side to the local area network side specifically includes:

[0008] The WAN port or WAN port.N receives all the messages and determines if they are IPv6 messages. The WAN port copies a copy of the IPv6 message to the WAN.ipv6 port, or the WAN port.N copies a copy of the IPv6 message to the WAN.ipv6 port.N. The WAN.ipv6 port or WAN.ipv6 port.N sends the IPv6 message to the bridge. The bridge checks its own MAC table to see if there is a MAC table for the IPv6 message. If there is a MAC table, the IPv6 message is forwarded to the port where the MAC is located. If there is no MAC table, the message is broadcast to all ports under the bridge.

[0009] At the same time, the WAN port or WAN port .N sends the received IPv6 message to the IP protocol stack. At this time, the IP protocol stack turns off the IPv6 message forwarding function, so it will no longer forward the IPv6 message to the bridge to avoid repeated sending of IPv6 messages from the WAN side to the LAN side.

[0010] The IPv6 message from the local area network side to the wide area network side specifically includes:

[0011] The LAN port or LAN port.N receives an IPv6 message and sends it to the bridge. The bridge forwards it to the WAN.ipv6 port or WAN.ipv6 port.N. The WAN.ipv6 port determines that if it is an IPv6 message, it will be sent to the WAN port or WAN.ipv6 port.N normally. If it is an IPv6 message, it will be sent to the WAN port or WAN.ipv6 port.N normally.

[0012] At the same time, the bridge forwards the IPv6 message to the IP protocol stack. At this time, the IP protocol stack turns off the IPv6 message forwarding function, so it will no longer forward the IPv6 message to the WAN port or WAN port .N to avoid repeated sending of IPv6 messages from the LAN side to the WAN side.

[0013] The method also includes a process of sending and receiving packets by a host on a wide area network side of an IPv6 message and a process of sending and receiving packets by a host on a local area network side of an IPv6 message;

[0014] The WAN side host sending and receiving process of the IPv6 message includes: the WAN port or the WAN port .N normally receives the IPv6 message, and then sends it to the IP protocol stack. The IP protocol stack determines that if it is an IPv6 message for the local machine, it will be processed normally. If it is not an IPv6 message for the local machine, it will be discarded;

[0015] The LAN side host sending and receiving process of the IPv6 message includes: the LAN port or LAN port .N receives the IPv6 message and then sends it to the bridge. The bridge sends the IPv6 message to the IP protocol stack. If the IP protocol stack determines that it is an IPv6 message for the local machine, it will be processed normally. If it is not an IPv6 message for the local machine, it will be discarded.

[0016] The method further includes a process in which a local area network side site obtains an IPv6 address, which includes:

[0017] The LAN port or LAN port.N receives a DHCPv6 response message or RS response message from a site connected to the LAN and enters the bridge. The bridge forwards it to the WAN.IPv6 port or WAN.IPv6 port.N. The WAN.IPv6 port forwards the DHCPv6 response message or RS response message to the WAN port, or the WAN.IPv6 port.N forwards the DHCPv6 response message or RS response message to the WAN port.N. The WAN port or WAN port.N then sends the IPv6 message to the upper-level optical modem.

[0018] The DHCPv6 response message or RS response message of the upper-level device's optical modem is sent to the WAN port or WAN port.N. The WAN port forwards it to the WAN.IPv6 port or WAN port.N. The WAN.IPv6 port or WAN.IPv6 port.N forwards the DHCPv6 response message or RS response message to the bridge. The bridge forwards the DHCPv6 response message or RS response message to the corresponding LAN port or LAN port.N. At this time, the site receives the DHCPv6 response message or RS response message.

[0019] The WAN.IPv6 port only receives and sends IPv6 messages, and when sending IPv6 messages, it is sent directly from the interface of the WAN port;

[0020] The WAN.IPv6 port.N only receives and sends IPv6 messages, and when sending IPv6 messages, it is sent directly from the interface of the WAN port.N;

[0021] The WAN.ipv6 port, WAN.ipv6 port.N, LAN port, LAN.N and IP protocol stack are all bound to the bridge, so that the ipv6 message on the WAN side can communicate with the ipv6 message on the LAN side on the bridge.

[0022] The method also includes an IPv4 message forwarding process:

[0023] WAN-to-LAN path: When an IPv4 packet is received by a WAN port or WAN port.N, it is not forwarded to the WAN.IPv6 port or WAN.IPv6 port.N. Instead, it is sent to the IP protocol stack. The IP protocol stack forwards the packet to the bridge. The bridge forwards the packet to the corresponding LAN port or LAN port.N. The LAN port or LAN port.N forwards the packet to the corresponding site connected to the LAN.

[0024] LAN to WAN path: The LAN port or LAN port.N receives the IPv4 message, forwards it to the bridge, the bridge forwards it to the IP protocol stack, and the IP protocol stack forwards it to the WAN port or WAN port.N.

[0025] If the WAN.IPv6 port and WAN.IPv6 port.N receive an IPv4 message, they are directly discarded;

[0026] The ipv4 message and ipv6 message are both received and sent through the bridge;

[0027] The method disables the DHCPv6 function and RA function of the dynamic host configuration protocol service program of the device, and disables the IPv6 routing forwarding function of the IP protocol stack;

[0028] The local area network includes a wireless port and / or a wired port.

[0029] The present invention has the following advantages: a method for implementing IPv6 bridge communication in a router through a hybrid bridge mode, which effectively supports IPv6 communication without replacing upper-level devices that do not support PD allocation, thereby effectively saving social resources; and a method for simplifying IPv6 deployment. IPv6 networks can be operated without deploying PD, effectively reducing the complexity of IPv6 deployment. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a structural schematic diagram of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the detailed description of the embodiments of the present application provided below in conjunction with the drawings is not intended to limit the scope of protection of the present application for which protection is claimed, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application. The present invention is further described below in conjunction with the drawings.

[0032] like Figure 1As shown, the present invention specifically relates to a method for a router to realize IPv6 bridge communication through a hybrid bridge mode, adding a WAN.IPv6 port to the WAN port. When performing IPv6 communication, the PD allocation process is bypassed, and the site on the LAN side of the router is directly allocated an address from the upper device and directly communicates with the upper router optical modem. The router only performs second-layer bridge forwarding on the IPv6 message and does not perform routing forwarding; specifically including the following contents.

[0033] IPv6 message from WAN side to LAN side: When the WAN port or WAN port.N determines that the received message is an IPv6 message, the WAN port sends the IPv6 message to the bridge through WAN.ipv6 port or WAN port.N and sends it to the IP protocol stack at the same time. The bridge determines whether to forward the message to the port on the LAN side by querying the MAC table;

[0034] IPv6 packets from the LAN side to the WAN side: The LAN port or LAN port.N receives the IPv6 packet and sends it to the bridge. The bridge forwards the IPv6 packet to the WAN port or WAN port.N through the WAN.IPv6 port or WAN.IPv6 port.N. At the same time, the bridge determines whether to forward the IPv6 packet to the IP protocol stack by querying the MAC table.

[0035] Furthermore, the IPv6 message from the WAN side to the LAN side specifically includes:

[0036] The WAN port or WAN port.N receives all the messages. If it determines that they are IPv6 messages, the WAN port copies an IPv6 message to the WAN.ipv6 port, or the WAN port.N copies an IPv6 message to the WAN.ipv6 port.N. The WAN.ipv6 port or WAN.ipv6 port.N sends the IPv6 message to the bridge. The bridge checks its own MAC table to see if there is a MAC table for the IPv6 message. If there is a MAC table, the IPv6 message is forwarded to the port where the MAC is located. If there is no MAC table, the message is broadcast to all ports under the bridge. Among them, all ports under the bridge include: WAN.ipv6 port, WAN.ipv6 port.N, LAN port, LAN port.N, and IP protocol stack.

[0037] At the same time, the WAN port or WAN port .N sends the received IPv6 message to the IP protocol stack. At this time, the IP protocol stack turns off the IPv6 message forwarding function, so it will no longer forward the IPv6 message to the bridge to avoid repeated sending of IPv6 messages from the WAN side to the LAN side.

[0038] Furthermore, the IPv6 message from the LAN side to the WAN side specifically includes:

[0039] The LAN port or LAN port.N receives an IPv6 message and sends it to the bridge. The bridge forwards it to the WAN.ipv6 port or WAN.ipv6 port.N. The WAN.ipv6 port determines that if it is an IPv6 message, it will be sent to the WAN port or WAN.ipv6 port.N normally. If it is an IPv6 message, it will be sent to the WAN port or WAN.ipv6 port.N normally.

[0040] At the same time, the bridge forwards the IPv6 message to the IP protocol stack. At this time, the IP protocol stack turns off the IPv6 message forwarding function, so it will no longer forward the IPv6 message to the WAN port or WAN port .N to avoid repeated sending of IPv6 messages from the LAN side to the WAN side.

[0041] Furthermore, the present invention also includes a process of sending and receiving packets of an IPv6 message by a host on a wide area network side and a process of sending and receiving packets of an IPv6 message by a host on a local area network side;

[0042] The WAN-side host's packet sending and receiving process for IPv6 packets includes: the WAN port or WAN port .N receives the IPv6 packet normally and then sends it to the IP protocol stack. The IP protocol stack processes the packet normally if it is destined for the local host, and discards it if it is not destined for the local host.

[0043] The LAN side host sending and receiving packet process of IPv6 message includes: LAN port or LAN port .N receives IPv6 message and then sends it to the bridge. The bridge sends IPv6 message to IP protocol stack. If the IP protocol stack determines that it is IPv6 message for the local machine, it will process it normally. If it is not IPv6 message for the local machine, it will be discarded.

[0044] Furthermore, the present invention also includes a process for a local area network side site to obtain an IPv6 address, which includes:

[0045] The LAN port or LAN port.N receives a DHCPv6 response message or RS response message from a site connected to the LAN and enters the bridge. The bridge forwards it to the WAN.IPv6 port or WAN.IPv6 port.N. The WAN.IPv6 port forwards the DHCPv6 response message or RS response message to the WAN port, or the WAN.IPv6 port.N forwards the DHCPv6 response message or RS response message to the WAN port.N. The WAN port or WAN port.N then sends the IPv6 message to the upper-level optical modem.

[0046] The upper-level optical modem sends the DHCPv6 response message or RS response message to the WAN port or WAN port.N. The WAN port forwards it to the WAN.IPv6 port or WAN port.N. The WAN.IPv6 port or WAN.IPv6 port.N forwards the DHCPv6 response message or RS response message to the bridge. The bridge forwards the DHCPv6 response message or RS response message to the corresponding LAN port or LAN port.N. At this time, the site receives the DHCPv6 response message or RS response message.

[0047] Among them, the WAN.ipv6 port only receives and sends IPv6 packets, and when sending IPv6 packets, it is sent directly from the interface of the WAN port; the WAN.ipv6 port.N only receives and sends IPv6 packets, and when sending IPv6 packets, it is sent directly from the interface of the WAN port.N; the WAN.ipv6 port, WAN.ipv6 port.N, LAN port, LAN.N and IP protocol stack are all bound to the bridge, so that the IPv6 packets on the WAN side can communicate with the IPv6 packets on the LAN side on the bridge; the DHCPv6 function and RA function of the dynamic host configuration protocol service program of the device are turned off (the DHCPv4 function is not affected).

[0048] Furthermore, the present invention also includes an IPv4 message forwarding process:

[0049] WAN-to-LAN path: When an IPv4 packet is received by a WAN port or WAN port.N, it is not forwarded to the WAN.IPv6 port or WAN.IPv6 port.N. Instead, it is sent to the IP protocol stack. The IP protocol stack forwards the packet to the bridge. The bridge forwards the packet to the corresponding LAN port or LAN port.N. The LAN port or LAN port.N forwards the packet to the corresponding site connected to the LAN.

[0050] LAN to WAN path: The LAN port or LAN port.N receives the IPv4 message, forwards it to the bridge, the bridge forwards it to the IP protocol stack, and the IP protocol stack forwards it to the WAN port or WAN port.N.

[0051] Among them, because wan.ipv6 port and wan.ipv6 port.N both discard all IPv4 packets, IPv4 packets will not be transferred from the bridge to wan port or wan port.N through wan.ipv6 port or wan.ipv6 port.N.

[0052] The foregoing description is merely a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein and should not be construed as excluding other embodiments. Rather, the present invention is capable of various other combinations, modifications, and improvements, and is capable of modifications within the scope of the concepts described herein, through the above teachings, or through techniques or knowledge in the relevant fields. Modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention are intended to be within the scope of the appended claims.

Claims

1. A method for implementing IPv6 bridge communication by a router through a hybrid bridge mode, characterized in that: The method comprises: IPv6 message from WAN side to LAN side: When the WAN port or WAN port.N determines that the received message is an IPv6 message, the WAN port sends the IPv6 message to the bridge through WAN.ipv6 port or WAN port.N and sends it to the IP protocol stack at the same time. The bridge determines whether to forward the message to the port on the LAN side by querying the MAC table; IPv6 packets from the LAN side to the WAN side: The LAN port or LAN port.N receives the IPv6 packet and sends it to the bridge. The bridge forwards the IPv6 packet to the WAN port or WAN port.N through the WAN.ipv6 port or WAN.ipv6 port.N. At the same time, the bridge forwards the IPv6 packet to the IP protocol stack. The method also includes an IPv4 message forwarding process: WAN-to-LAN path: When an IPv4 packet is received by a WAN port or WAN port.N, it is not forwarded to the WAN.IPv6 port or WAN.IPv6 port.N. Instead, it is sent to the IP protocol stack. The IP protocol stack forwards the packet to the bridge. The bridge forwards the packet to the corresponding LAN port or LAN port.N. The LAN port or LAN port.N forwards the packet to the corresponding site connected to the LAN. LAN-to-WAN path: The LAN port or LAN port.N receives the IPv4 packet, forwards it to the bridge, the bridge forwards it to the IP protocol stack, and the IP protocol stack forwards it to the WAN port or WAN port.N; If the WAN.IPv6 port and WAN.IPv6 port.N receive an IPv4 message, they are directly discarded; The method disables the DHCPv6 function and the RA function of the dynamic host configuration protocol service program of the device and disables the IPv6 routing forwarding function of the IP protocol stack.

2. The method for implementing IPv6 bridge communication by a router through a hybrid bridge mode according to claim 1, characterized in that: The IPv6 message from the wide area network side to the local area network side specifically includes: The WAN port or WAN port.N receives all the messages and determines if they are IPv6 messages. The WAN port copies a copy of the IPv6 message to the WAN.ipv6 port, or the WAN port.N copies a copy of the IPv6 message to the WAN.ipv6 port.N. The WAN.ipv6 port or WAN.ipv6 port.N sends the IPv6 message to the bridge. The bridge checks its own MAC table to see if there is a MAC table for the IPv6 message. If there is a MAC table, the IPv6 message is forwarded to the port where the MAC is located. If there is no MAC table, the message is broadcast to all ports under the bridge. At the same time, the WAN port or WAN port .N sends the received IPv6 message to the IP protocol stack. At this time, the IP protocol stack turns off the IPv6 message forwarding function, so it will no longer forward the IPv6 message to the bridge to avoid repeated sending of IPv6 messages from the WAN side to the LAN side.

3. The method for implementing IPv6 bridge communication by a router through a hybrid bridge mode according to claim 1, characterized in that: The IPv6 message from the local area network side to the wide area network side specifically includes: The LAN port or LAN port.N receives an IPv6 message and sends it to the bridge. The bridge forwards it to the WAN.ipv6 port or WAN.ipv6 port.N. The WAN.ipv6 port determines that if it is an IPv6 message, it will be sent to the WAN port or WAN.ipv6 port.N normally. If it is an IPv6 message, it will be sent to the WAN port or WAN.ipv6 port.N normally. At the same time, the bridge forwards the IPv6 message to the IP protocol stack. At this time, the IP protocol stack turns off the IPv6 message forwarding function, so it will no longer forward the IPv6 message to the WAN port or WAN port .N to avoid repeated sending of IPv6 messages from the LAN side to the WAN side.

4. The method for implementing IPv6 bridge communication by a router through a hybrid bridge mode according to claim 1, characterized in that: The method also includes a process of sending and receiving packets by a host on a wide area network side of an IPv6 message and a process of sending and receiving packets by a host on a local area network side of an IPv6 message; The WAN side host sending and receiving process of the IPv6 message includes: the WAN port or the WAN port .N normally receives the IPv6 message, and then sends it to the IP protocol stack. The IP protocol stack determines that if it is an IPv6 message for the local machine, it will be processed normally. If it is not an IPv6 message for the local machine, it will be discarded; The LAN side host sending and receiving process of the IPv6 message includes: the LAN port or LAN port .N receives the IPv6 message and then sends it to the bridge. The bridge sends the IPv6 message to the IP protocol stack. If the IP protocol stack determines that it is an IPv6 message for the local machine, it will be processed normally. If it is not an IPv6 message for the local machine, it will be discarded.

5. The method for implementing IPv6 bridge communication by a router through a hybrid bridge mode according to claim 1, characterized in that: The method further includes a process in which a local area network side site obtains an IPv6 address, which includes: The LAN port or LAN port.N receives a DHCPv6 response message or RS response message from a site connected to the LAN and enters the bridge. The bridge forwards it to the WAN.IPv6 port or WAN.IPv6 port.N. The WAN.IPv6 port forwards the DHCPv6 response message or RS response message to the WAN port, or the WAN.IPv6 port.N forwards the DHCPv6 response message or RS response message to the WAN port.N. The WAN port or WAN port.N then sends the IPv6 message to the upper-level optical modem. The DHCPv6 response message or RS response message of the upper-level device's optical modem is sent to the WAN port or WAN port.N. The WAN port forwards it to the WAN.IPv6 port or WAN port.N. The WAN.IPv6 port or WAN.IPv6 port.N forwards the DHCPv6 response message or RS response message to the bridge. The bridge forwards the DHCPv6 response message or RS response message to the corresponding LAN port or LAN port.N. At this time, the site receives the DHCPv6 response message or RS response message.

6. The method for implementing IPv6 bridge communication by a router through a hybrid bridge mode according to claim 1, characterized in that: The WAN.ipv6 port only receives and sends ipv6 messages, and when sending ipv6 messages, it is sent directly from the interface of the WAN port; the WAN.ipv6 port.N only receives and sends ipv6 messages, and when sending ipv6 messages, it is sent directly from the interface of the WAN port.N; The WAN.ipv6 port, WAN.ipv6 port.N, LAN port, LAN port.N and IP protocol stack are all bound to the bridge, so that the ipv6 message on the WAN side can communicate with the ipv6 message on the LAN side on the bridge.

7. The method for implementing IPv6 bridge communication by a router through a hybrid bridge mode according to claim 1, characterized in that: The ipv4 message and ipv6 message are both received and sent through the bridge; The local area network includes a wireless port and / or a wired port.

Citation Information

Patent Citations

  • Router and method for realizing IPv6 (Internet Protocol Version 6) message traversing on IPv4 (Internet Protocol Version 4) router

    CN102377654A