Method for router to realize ipv6 bridge communication through hybrid bridge mode

The IPv6 bridge communication is realized through a router with a hybrid bridge method, which solves the IPv6 communication problem that depends on pd allocation in the prior art, and realizes the effect of supporting ipv6 communication in an environment that does not support pd allocation.

CN119449708AActive Publication Date: 2025-02-14MICRONET UNION TECH (CHENGDU) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, when implementing IPv6 communication, the router relies on the superior device to allocate pd. If the superior device does not allocate or the allocation is invalid, it will not be possible to perform IPv6 routing communication.

Method used

Through the hybrid bridge method, the router directly forwards the layer 2 bridge of IPv6 messages without relying on PDF allocation, and does not forward routing, thereby realizing IPv6 bridge communication.

Benefits of technology

Without replacing the superior device that does not support pd allocation, it can support IPv6 communication, simplifying the IPv6 deployment method, reducing deployment complexity, and effectively saving social resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449708A_ABST
    Figure CN119449708A_ABST
Patent Text Reader

Abstract

The invention relates to a method for a router to realize ipv6 bridge communication through a hybrid bridge mode, and belongs to the field of communication. When a wide area network port or a wide area network port. N judges that the received message is an ipv6 message, the wide area network port sends the ipv6 message to a bridge through the wide area network. Ipv6 port or the wide area network port. N through the wide area network. Ipv6 port. N and sends the ipv6 message to an IP (Internet Protocol) stack at the same time; the bridge judges whether to forward the message to the port of the local area network side by querying the mac table; a local area network port or a local area network port. N receives an ipv6 message and sends the ipv6 message to a bridge, the bridge forwards the ipv6 message to a wide area network port or a wide area network port. N through a wide area network. Ipv6 port or the wide area network. Ipv6 port. N, and meanwhile the bridge forwards the ipv6 message to an IP protocol stack. According to the invention, the ipv6 network can be operated without deploying a pd, so that the complexity of deploying the ipv6 is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] The current way for routers to implement IPv6 communication is to communicate through IPv6 routing forwarding, forwarding IPv6 messages on the WAN side to the LAN side, and forwarding IPv6 messages on the LAN side to the LAN side. Before IPv6 routing forwarding, the upper-level device (optical modem) of the router assigns a PD to the router, and the router assigns an IPv6 address to the site on the LAN side according to the PD, and then the site and the router can perform routing communication according to the IPv6 address. However, the current IPv6 network is not mature enough, and there are the following problems: 1. The upper-level device does not assign a PD to the router, resulting in the router being unable to assign an address to the site, thereby performing IPv6 routing communication; 2. The PD assigned by the upper-level device to the router is invalid, resulting in the site being able to assign an IPv6 address, but unable to perform IPv6 routing communication. Therefore, how to solve these problems is currently a matter of consideration. Summary of the invention

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

[0004] The purpose of the present invention is achieved through the following technical solution: a method for a router to realize IPv6 bridge communication through a hybrid bridge mode, the method comprising: IPv6 message from WAN side to LAN side: When WAN port or WAN port.N determines that the received message is IPv6 message, the WAN port sends the IPv6 message to the bridge through WAN.IPv6 port or WAN port.N through WAN.IPv6 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 message from LAN side to WAN side: LAN port or LAN port.N receives IPv6 message and sends it to the bridge. The bridge forwards the IPv6 message to WAN port or WAN port.N through WAN.IPv6 port or WAN.IPv6 port.N. At the same time, the bridge forwards the IPv6 message to the IP protocol stack.

[0005] The IPv6 message from the wide area network side to the local area network side specifically includes: WAN port or WAN port.N receives all the messages, and if it is an IPv6 message, 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, and 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, it 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.

[0006] 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.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.

[0007] The method also includes a process of receiving and sending packets by a host on the wide area network side of an IPv6 message and a process of receiving and sending packets by a host on the local area network side of an IPv6 message; The WAN side host packet receiving and sending process of the ipv6 message includes: the WAN port or WAN port .N receives the ipv6 message normally, 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 packet 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.

[0008] The method also 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 the DHCPV6 response message or RS response message from the site under the LAN and enters the bridge, and the bridge forwards it to the WAN.IPV6 port or WAN.IPV6 port.N, and 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, and 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 device optical modem is sent to the WAN port or WAN port.N, the WAN port is forwarded to the WAN.IPv6 port or WAN port.N, forwarded to the WAN.IPv6 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 transfers 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.

[0009] The WAN.IPv6 port only receives and sends IPv6 messages, and when sending IPv6 messages, they are 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, they are directly sent out from the interface of 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 message on the WAN side can communicate with the ipv6 message on the LAN side on the bridge.

[0010] The method also includes an ipv4 message forwarding process: Path from WAN to LAN: When a WAN port or WAN port.N receives an IPv4 message, it will not be forwarded to the WAN.IPv6 port or WAN.IPv6 port.N, but sent to the IP protocol stack. The IP protocol stack forwards it to the bridge. The bridge forwards it to the corresponding LAN port or LAN port.N. The LAN port or LAN port.N forwards it to the corresponding site under the LAN. Path from LAN to WAN: LAN port or LAN port.N receives 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.

[0011] If the WAN.IPv6 port and WAN.IPv6 port.N receive an IPv4 message, they are directly discarded; The ipv4 message and the ipv6 message are both received and sent through the bridge; The method turns off the DHCPv6 function and RA function of the dynamic host configuration protocol service program of the device, and turns off the ipv6 routing forwarding function of the IP protocol stack; The local area network includes a wireless port and / or a wired port.

[0012] The invention has the following advantages: a method for realizing IPv6 bridge communication by a router through a hybrid bridge mode, which can better support IPv6 communication without replacing the upper-level device that does not support PD allocation, effectively saving social resources; simplifying the IPv6 deployment mode. IPv6 can run the IPv6 network without deploying PD, effectively reducing the complexity of IPv6 deployment. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0014] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme 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 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 application claimed for protection, 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 belong to the scope of protection of the present application. The present invention is further described below in conjunction with the drawings.

[0015] like Figure 1 As shown, the present invention specifically relates to a method for a router to realize IPv6 bridge communication through a hybrid bridge mode, adding a wide area network (WAN) IPv6 port to a wide area network (WAN) port, bypassing the PD allocation process when performing IPv6 communication, allowing sites on the LAN side of the router to directly allocate addresses from upper-level equipment, and directly communicate with the upper-level router optical modem, and the router only performs layer 2 bridge forwarding on the IPv6 message, and does not perform routing forwarding; specifically including the following contents.

[0016] IPv6 message from WAN side to LAN side: When WAN port or WAN port.N determines that the received message is IPv6 message, the WAN port sends the IPv6 message to the bridge through WAN.IPv6 port or WAN port.N through WAN.IPv6 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 message from LAN side to WAN side: LAN port or LAN port.N receives IPv6 message and sends it to the bridge. The bridge forwards the IPv6 message to WAN port or WAN port.N through WAN.IPv6 port or WAN.IPv6 port.N. At the same time, the bridge determines whether to forward the IPv6 message to the IP protocol stack by querying the MAC table.

[0017] Furthermore, the IPv6 message from the WAN side to the LAN side specifically includes: The WAN port or WAN port.N receives all the messages, and if it is an IPv6 message, 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, it is broadcast to all ports under the bridge, where all ports under the bridge include: WAN.ipv6 port, WAN.ipv6 port.N, LAN port, LAN port.N, and IP protocol stack.

[0018] 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.

[0019] Furthermore, the IPv6 message from the LAN side to the WAN 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.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.

[0020] Furthermore, the present invention also includes a process of receiving and sending packets of a WAN-side host of an IPv6 message and a process of receiving and sending packets of a LAN-side host of an IPv6 message; The WAN side host packet receiving and sending process of the ipv6 message includes: the WAN port or WAN port.N receives the ipv6 message normally, 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 packet 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. The IP protocol stack determines that if it is an ipv6 message for the local machine, it will process it normally. If it is not an ipv6 message for the local machine, it will be discarded.

[0021] Furthermore, the present invention also includes a process for a local area network side site to obtain an IPv6 address, which includes: The LAN port or LAN port.N receives the DHCPV6 response message or RS response message from the site under the LAN and enters the bridge, and the bridge forwards it to the WAN.IPV6 port or WAN.IPV6 port.N, and 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, and the WAN port or WAN port.N then sends the IPV6 message to the upper-level optical modem; 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 which point the site receives the DHCPv6 response message or RS response message.

[0022] Among them, WAN.ipv6 port only receives and sends ipv6 packets, and when sending ipv6 packets, it is directly sent from the interface of WAN port; WAN.ipv6 port.N only receives and sends ipv6 packets, and when sending ipv6 packets, it is directly sent from the interface of WAN port.N; 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; turn off the DHCPv6 function and RA function of the dynamic host configuration protocol service program of the device (the DHCPv4 function is not affected).

[0023] Furthermore, the present invention also includes an ipv4 message forwarding process: Path from WAN to LAN: When a WAN port or WAN port.N receives an IPv4 message, it will not be forwarded to the WAN.IPv6 port or WAN.IPv6 port.N, but sent to the IP protocol stack. The IP protocol stack forwards it to the bridge. The bridge forwards it to the corresponding LAN port or LAN port.N. The LAN port or LAN port.N forwards it to the corresponding site under the LAN. Path from LAN to WAN: LAN port or LAN port.N receives 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.

[0024] Among them, since 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.

[0025] The above is only 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 regarded as excluding other embodiments, but can be used for various other combinations, modifications and improvements, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art do not deviate from the spirit and scope of the present invention, and should be within the scope of protection of the claims attached to the present invention.

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 WAN port or WAN port.N determines that the received message is IPv6 message, the WAN port sends the IPv6 message to the bridge through WAN.IPv6 port or WAN port.N through WAN.IPv6 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 message from LAN side to WAN side: LAN port or LAN port.N receives IPv6 message and sends it to the bridge. The bridge forwards the IPv6 message to WAN port or WAN port.N through WAN.IPv6 port or WAN.IPv6 port.N. At the same time, the bridge forwards the IPv6 message to 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: WAN port or WAN port.N receives all the messages, and if it is an IPv6 message, 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, and 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, it 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.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 receiving and sending packets by a host on the wide area network side of an IPv6 message and a process of receiving and sending packets by a host on the local area network side of an IPv6 message; The WAN side host packet receiving and sending process of the ipv6 message includes: the WAN port or WAN port .N receives the ipv6 message normally, 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 packet 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 also 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 the DHCPV6 response message or RS response message from the site under the LAN and enters the bridge, and the bridge forwards it to the WAN.IPV6 port or WAN.IPV6 port.N, and 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, and 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 device optical modem is sent to the WAN port or WAN port.N, the WAN port is forwarded to the WAN.IPv6 port or WAN port.N, forwarded to the WAN.IPv6 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 transfers 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 directly sent out 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 directly sent out 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 method also includes an ipv4 message forwarding process: Path from WAN to LAN: When a WAN port or WAN port.N receives an IPv4 message, it will not be forwarded to the WAN.IPv6 port or WAN.IPv6 port.N, but sent to the IP protocol stack. The IP protocol stack forwards it to the bridge. The bridge forwards it to the corresponding LAN port or LAN port.N. The LAN port or LAN port.N forwards it to the corresponding site under the LAN. Path from LAN to WAN: LAN port or LAN port.N receives 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.

8. The method for implementing IPv6 bridge communication by a router through a hybrid bridge mode according to claim 1, characterized in that: If the WAN.IPv6 port and WAN.IPv6 port.N receive an IPv4 message, they are directly discarded; The ipv4 message and the ipv6 message are both received and sent through the bridge; The method turns off the DHCPv6 function and RA function of the dynamic host configuration protocol service program of the device, and turns off the ipv6 routing forwarding function of the IP protocol stack; The local area network includes a wireless port and / or a wired port.

Citation Information

Patent Citations

  • Router and method for processing IPv6 packet thereof

    CN101841457A

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

    CN102377654A

  • Method for achieving double-stack protocol bridge dialing

    CN103457823A

  • Router and router ipv6 self-adaption method and device

    CN114938347A

  • Method and system for service discovery across a wide area network

    US20070280230A1