CN110365557B - Network interconnection method and device - Google Patents

Network interconnection method and device Download PDF

Info

Publication number
CN110365557B
CN110365557B CN201810250575.7A CN201810250575A CN110365557B CN 110365557 B CN110365557 B CN 110365557B CN 201810250575 A CN201810250575 A CN 201810250575A CN 110365557 B CN110365557 B CN 110365557B
Authority
CN
China
Prior art keywords
router
address
destination
data message
static routing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810250575.7A
Other languages
Chinese (zh)
Other versions
CN110365557A (en
Inventor
王阿琴
姜志俊
武云飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201810250575.7A priority Critical patent/CN110365557B/en
Publication of CN110365557A publication Critical patent/CN110365557A/en
Application granted granted Critical
Publication of CN110365557B publication Critical patent/CN110365557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for network interconnection, which relate to the technical field of broadband access communication, wherein the method comprises the following steps: the gateway access equipment judges whether the data message is sent to an external network or a router connected with the home gateway according to the destination IP address of the data message and the static routing entry issued by the home gateway; when the data message is judged to be sent to the external network, the gateway access equipment sends the data message to a home gateway for forwarding to the external network; and when the data message is judged to be sent to a router connected with the home gateway, the gateway access equipment sends the data message to the router for realizing network interconnection.

Description

Network interconnection method and device
Technical Field
The present invention relates to the field of broadband access communication technologies, and in particular, to a method and an apparatus for network interconnection.
Background
The home gateway is a network device located in a user home, is a hub for connecting an external network and the user home network, and provides rich and efficient network services for daily life of people. In order to increase the number of home gateway access devices or improve the coverage and signal strength of a wireless Network, many users may connect a router to a Local Area Network (LAN) port of a home gateway, where the router is located at a relatively far position from the home gateway, and a part of the access devices directly access the home gateway, and another part of the access devices access the home gateway through the router. As shown in fig. 3, the home gateway allocates an address to the access device, the PC1 obtains a private Network address 192.168.1.2 allocated to the home gateway, the router establishes a WAN (Wide Area Network) connection to obtain a private Network address 192.168.1.3 allocated to the home gateway, and the PC2 obtains a private Network address 192.168.2.2 allocated to the router. The WAN connection refers to a virtual channel established when the router accesses an external network. When the PC1 accesses an external network, the message is directly sent to the home gateway, and the Internet is accessed through the home gateway. When the PC2 accesses an external network, the message is sent to the router firstly, and then the message is sent to the home gateway through WAN connection of the router to realize internet access through the router. When the PC1 accesses the PC2, the PC1 first sends the packet to the home gateway, the home gateway searches for the route to 192.168.2.2, finds the default route entry, and forwards the packet to the WAN side, that is, to the external network, and the PC1 fails to access the PC 2.
In order to solve the problem of failure of accessing the PC2 by the PC1, a method for configuring a static route on the LAN side is provided, that is, a static route entry is configured on the home gateway, and the routing entry indicates that all messages with destination addresses of 192.168.2.2 are forwarded from 192.168.1.3, so that the PC1 can access the PC 2. Although this approach enables the PC1 to access the PC2, there are two disadvantages: one is that the PC1 sends a message to the PC2, which has three layers, i.e., an IP layer, to search for a route, and after a route entry is searched, three layers of forwarding are performed. In fact, the PC1 and the router are both down-hanging devices of the home gateway, and the message sent by the PC1 to the router can be directly forwarded by the second-layer bridge without going to the third layer, i.e., the IP layer, to search for a routing entry; a second problem is that once the address acquired by the router WAN connection changes, the user must manually configure a static route, which is inconvenient for the user.
Disclosure of Invention
The embodiment of the invention provides a network interconnection method and a network interconnection device, which are used for solving the technical problems in the prior art and completely realizing the network interconnection work of access equipment in different network segments.
The method for network interconnection provided by the embodiment of the invention comprises the following steps:
the gateway access equipment judges whether the data message is sent to an external network or a router connected with the home gateway according to the destination IP address of the data message and the static routing entry issued by the home gateway;
when the data message is judged to be sent to the external network, the gateway access equipment sends the data message to a home gateway for forwarding to the external network;
and when the data message is judged to be sent to a router connected with the home gateway, the gateway access equipment sends the data message to the router for realizing network interconnection.
Preferably, the determining, by the gateway access device, whether the data packet is sent to an external network or a router connected to the home gateway according to the destination IP address of the data packet and a static routing entry issued by the home gateway includes:
the gateway access equipment searches for a static routing entry in a pre-stored routing table according to the destination IP address of the data message;
if the static routing entry in the pre-stored routing table finds a router IP address pool network segment matched with the destination IP address of the data message, the gateway access equipment judges that the datagram is sent to a router connected with a home gateway;
and if the static routing entry in the pre-stored routing table does not find the router IP address pool network segment matched with the destination IP address of the data message, the gateway access equipment judges that the datagram is sent to an external network.
Preferably, the step of the gateway access device searching for the static routing entry in the pre-stored routing table according to the destination IP address of the data packet includes:
the gateway access equipment matches the destination IP address of the data message with the router IP address pool network segment in the static routing entry;
if the destination IP address of the data message is successfully matched with the router IP address pool network segment in the static routing entry, the gateway access equipment determines to find the router IP address pool network segment matched with the destination IP address of the data message in the static routing entry;
and if the destination IP address of the data message fails to be matched with the router IP address pool network segment in the static routing entry, the gateway access equipment determines that the router IP address pool network segment matched with the destination IP address of the data message is not found in the static routing entry.
The method for interconnecting the access equipment networks provided by the embodiment of the invention comprises the following steps:
the home gateway generates a destination descriptor containing the router address pool network segment and the subnet mask according to the router address pool network segment and the subnet mask configured to the router;
the home gateway obtains a static routing entry containing the router IP address and the destination descriptor according to the router IP address allocated to the router and the generated destination descriptor;
after receiving a DHCP (Dynamic Host Configuration Protocol) request message sent by a gateway access device, a home gateway sends the obtained static routing entry to the gateway access device.
According to the embodiment of the invention, the network interconnection device comprises:
the judging module is used for judging whether the data message is sent to an external network or a router connected with the home gateway according to the destination IP address of the data message and the static routing entry issued by the home gateway;
the sending external network module is used for sending the data message to a home gateway for forwarding to an external network when judging that the data message is sent to the external network;
and the network interconnection module is used for sending the data message to the router for realizing network interconnection when judging that the data message is sent to the router connected with the home gateway.
Preferably, the judging module includes:
the searching unit is used for searching static routing entries in a pre-stored routing table according to the destination IP address of the data message;
and the judging unit is used for judging that the datagram is sent to a router connected with a home gateway when the router IP address pool network segment matched with the destination IP address of the data message is found by the static routing entry in the pre-stored routing table, and judging that the datagram is sent to an external network when the router IP address pool network segment matched with the destination IP address of the data message is not found by the static routing entry in the pre-stored routing table.
Preferably, the search unit includes:
the matching subunit is used for matching the destination IP address of the data message with the router IP address pool network segment in the static routing entry;
and the searching subunit is used for determining that the router IP address pool network segment matched with the destination IP address of the data message is searched in the static routing entry if the destination IP address of the data message is successfully matched with the router IP address pool network segment in the static routing entry, and determining that the router IP address pool network segment matched with the destination IP address of the data message is not searched in the static routing entry if the destination IP address of the data message is unsuccessfully matched with the router IP address pool network segment in the static routing entry.
According to the embodiment of the invention, the network interconnection device comprises:
the generating module is used for generating a destination descriptor containing the router address pool network segment and the subnet mask according to the router address pool network segment and the subnet mask configured to the router;
an obtaining module, configured to obtain a static routing entry including a router IP address and a destination descriptor according to the router IP address assigned to the router and the generated destination descriptor;
and the sending module is used for sending the obtained static routing entry to the gateway access equipment after receiving the DHCP request message sent by the gateway access equipment.
According to an embodiment of the present invention, there is provided a network interconnection device, including: a processor, and a memory coupled to the processor; the memory has stored thereon a network interconnection program executable on the processor, the network interconnection program when executed by the processor provides a method of network interconnection according to an embodiment of the present disclosure.
According to the computer storage medium provided by the embodiment of the invention, a network interconnection program is stored, and the network interconnection program is executed by a processor according to the network interconnection method provided by the embodiment of the disclosure.
According to the scheme provided by the embodiment of the invention, when the access equipment accesses the external network, the destination address is a public network address and is not matched with the static route generated by the Option121, the next hop address of the message is the address of the home gateway, and finally the home gateway forwards the message through three layers; when the access device accesses the access device under the router, the destination address is a certain address in the network segment of the router address pool, and is matched with the static route generated by the Option121, the next address of the message is 192.168.1.3, the home gateway directly forwards the message to the LAN port corresponding to the router on the second layer, and then forwards the message to the corresponding access device through the router, thereby realizing that the home gateway access device accesses the access device of the router.
Drawings
FIG. 1 is a flow chart of a method for interconnecting networks according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an apparatus for network interconnection according to an embodiment of the present invention;
fig. 3 is a scenario diagram of a home gateway access device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a DHCP Server issuing Option121 process provided in the embodiment of the present invention;
fig. 5 is a schematic diagram of a process for accessing an extranet and a PC2 by a PC1 according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 1 is a flowchart of a method for network interconnection according to an embodiment of the present invention, as shown in fig. 1, including:
step S101: the gateway access equipment judges whether the data message is sent to an external network or a router connected with the home gateway according to the destination IP address of the data message and the static routing entry issued by the home gateway;
step S102: when the data message is judged to be sent to the external network, the gateway access equipment sends the data message to a home gateway for forwarding to the external network;
step S103: and when the data message is judged to be sent to a router connected with the home gateway, the gateway access equipment sends the data message to the router for realizing network interconnection.
The gateway access equipment is connected with a home gateway; and the gateway access equipment sends the data message to the router for realizing network interconnection so as to forward the data message to the router access equipment connected with the router according to the destination address of the data message by the router.
The gateway access equipment judges whether the data message is sent to an external network or a router connected with the home gateway according to the destination IP address of the data message and the static routing entry issued by the home gateway, and the gateway access equipment comprises: the gateway access equipment searches for a static routing entry in a pre-stored routing table according to the destination IP address of the data message; if the static routing entry in the pre-stored routing table finds a router IP address pool network segment matched with the destination IP address of the data message, the gateway access equipment judges that the datagram is sent to a router connected with a home gateway; and if the static routing entry in the pre-stored routing table does not find the router IP address pool network segment matched with the destination IP address of the data message, the gateway access equipment judges that the datagram is sent to an external network.
Specifically, the step of the gateway access device searching for the static routing entry in the pre-stored routing table according to the destination IP address of the data packet includes: the gateway access equipment matches the destination IP address of the data message with the router IP address pool network segment in the static routing entry; if the destination IP address of the data message is successfully matched with the router IP address pool network segment in the static routing entry, the gateway access equipment determines to find the router IP address pool network segment matched with the destination IP address of the data message in the static routing entry; and if the destination IP address of the data message fails to be matched with the router IP address pool network segment in the static routing entry, the gateway access equipment determines that the router IP address pool network segment matched with the destination IP address of the data message is not found in the static routing entry.
The method for interconnecting the access equipment networks provided by the embodiment of the invention comprises the following steps:
the home gateway generates a destination descriptor containing the router address pool network segment and the subnet mask according to the router address pool network segment and the subnet mask configured to the router;
the home gateway obtains a static routing entry containing the router IP address and the destination descriptor according to the router IP address allocated to the router and the generated destination descriptor;
and after receiving the DHCP request message sent by the gateway access equipment, the home gateway sends the obtained static routing entry to the gateway access equipment.
The static routing entry is issued after the home gateway receives a DHCP request message sent by gateway access equipment, and the gateway access equipment configures the static routing entry into a routing table after receiving the static routing entry sent by the home gateway.
Fig. 2 is a schematic diagram of a network interconnection apparatus according to an embodiment of the present invention, as shown in fig. 2, including: a judging module 201, configured to judge whether the data packet is sent to an external network or a router connected to a home gateway according to a destination IP address of the data packet and a static routing entry issued by the home gateway; a sending external network module 202, configured to send the data packet to a home gateway for forwarding to an external network when it is determined that the data packet is sent to the external network; and the network interconnection module 203 is configured to send the data packet to a router connected to the home gateway when it is determined that the data packet is sent to the router for implementing network interconnection.
Wherein, the judging module 201 includes: the searching unit is used for searching static routing entries in a pre-stored routing table according to the destination IP address of the data message; and the judging unit is used for judging that the datagram is sent to a router connected with a home gateway when the router IP address pool network segment matched with the destination IP address of the data message is found by the static routing entry in the pre-stored routing table, and judging that the datagram is sent to an external network when the router IP address pool network segment matched with the destination IP address of the data message is not found by the static routing entry in the pre-stored routing table.
Specifically, the search unit includes: the matching subunit is used for matching the destination IP address of the data message with the router IP address pool network segment in the static routing entry; and the searching subunit is used for determining that the router IP address pool network segment matched with the destination IP address of the data message is searched in the static routing entry if the destination IP address of the data message is successfully matched with the router IP address pool network segment in the static routing entry, and determining that the router IP address pool network segment matched with the destination IP address of the data message is not searched in the static routing entry if the destination IP address of the data message is unsuccessfully matched with the router IP address pool network segment in the static routing entry.
According to the embodiment of the invention, the network interconnection device comprises:
the generating module is used for generating a destination descriptor containing the router address pool network segment and the subnet mask according to the router address pool network segment and the subnet mask configured to the router;
an obtaining module, configured to obtain a static routing entry including a router IP address and a destination descriptor according to the router IP address assigned to the router and the generated destination descriptor;
and the sending module is used for sending the obtained static routing entry to the gateway access equipment after receiving the DHCP request message sent by the gateway access equipment.
According to an embodiment of the present invention, there is provided a network interconnection device, including: a processor, and a memory coupled to the processor; the memory has stored thereon a network interconnection program executable on the processor, the network interconnection program when executed by the processor provides a method of network interconnection according to an embodiment of the present disclosure.
According to the computer storage medium provided by the embodiment of the invention, a network interconnection program is stored, and the network interconnection program is executed by a processor according to the network interconnection method provided by the embodiment of the disclosure.
The static routing entry is issued after the home gateway receives a DHCP request message sent by gateway access equipment, and the gateway access equipment configures the static routing entry into a routing table after receiving the static routing entry sent by the home gateway.
The embodiment of the invention relates to a DHCP Option121 technology, wherein the DHCP Option refers to extension information carried in a DHCP message interaction process, options of the Option121 can define one or more static routes, each static route entry consists of a destination descriptor and a route IP address (next address), and the destination descriptor consists of a destination IP address and a mask length. After receiving the message containing the Option, the DHCP client analyzes the static routing entries in the Option, and adds the static routing entries in the routing table.
Fig. 3 is a scenario diagram of a home gateway access device according to an embodiment of the present invention, as shown in fig. 3, a PC1 obtains a private network address 192.168.1.2 allocated to a home gateway, a router WAN connects to obtain a private network address 192.168.1.3 allocated to the home gateway, and a PC2 obtains a private network address 192.168.2.2 allocated to the router.
The embodiment of the invention adopts the following method: the home gateway DHCP Server assigns an IP address, e.g., 192.168.1.3, to the router WAN connection. After the WAN connection of the router is allocated with the address, the DHCP Server generates the extension content of the Option121 according to the IP address 192.168.1.3 allocated to the router and the address pool segment of the router, for example, if the address pool segment of the router is 192.168.2.X, the subnet mask is 255.255.255.0, the destination descriptor of the generation Option121 is 24.192.168.2, and the next address is 192.168.1.3. The access device of other LAN ports of the home gateway acquires the address in a DHCP mode, the DHCP Server issues the Option121 content and information such as an IP address, a DNS (Domain Name System), a gateway and the like to the access device, and the access device analyzes the Option121 content and configures the static routing entry into a routing table.
The invention relates to a DHCP Server module, which is a software module in a home gateway. The DHCP Server module monitors a DHCP request message sent by the LAN side access equipment, replies the request message sent by the access equipment, allocates an available private network IP address for the access equipment, simultaneously carries extension option information such as DNS and gateway, and maintains the allocated IP address information and the access equipment information.
The invention relates to a DHCP Option module which is a software module in a home gateway. And the DHCP Option module generates the extension information content of each Option. Before the DHCP Server replies the message to the access equipment, the module acquires all the Option contents and adds the Option contents into the message, and replies the message to the access equipment.
When the WAN connection address of the router changes, the content of the Option of the Option121 is regenerated and is sent to the access equipment again, and the access equipment automatically updates the static routing entry, so that the trouble of configuring the static routing by the user is avoided, and better use experience is brought to the user.
Fig. 4 is a schematic diagram of a DHCP Server issuing Option121 process provided in the embodiment of the present invention, as shown in fig. 4, and the specific implementation steps are explained with reference to the scenario of fig. 3:
step 201: the home gateway configures an address field and a subnet mask of a router address pool, and the DHCP Option module generates a destination descriptor of Option121 expanded information according to the address field and the subnet mask of the address pool;
step 202: the router establishes a DHCP-type WAN connection and sends a DHCP request message;
step 203: the DHCP Server allocates an available IP address for the router WAN connection, sends a reply message, and the router WAN connection acquires the IP address;
step 204: the DHCP Server sends the IP address allocated to the WAN connection of the router to a DHCP Option module;
step 205: the WAN connection IP address of the router is the next hop IP address of the Option121, and the DHCP Option module generates complete Option121 expansion information by using the destination descriptor and the next hop IP address generated in the step 201;
step 206: the PC1 sends a DHCP Request message, an Option55 requests a List Request List to carry an Option121, and requests to acquire Option121 Option information; the Option55 is an Option carried in a request message sent by the client, and the content in the Option is an Option that the client wants to obtain the extension information from the DHCP server;
step 207: the DHCP Server selects an available IP address and obtains the Option information requested to be obtained by the PC1 from the DHCP Option module;
step 208: the DHCP Option module returns all the Option information requested to be acquired by the PC1, including Option121 options;
step 209: the DHCP Server adds the distributed IP address and all Option information into a reply message;
step 210: the DHCP Server sends the reply message to the PC 1;
step 211: the PC1 receives the DHCP message, analyzes all Option options, and configures the static route in the Option121 Option content into the routing table.
Fig. 5 is a schematic diagram of a process of accessing an external network and a PC2 by a PC1 according to an embodiment of the present invention, and as shown in fig. 5, if a PC1 acquires a private network address 192.168.1.2 allocated to a home gateway, a router WAN is connected to acquire a private network address 192.168.1.3 allocated to the home gateway, and a PC2 acquires a private network address 192.168.2.2 allocated to the router, the specific implementation steps are described with reference to the scenario in fig. 3:
step 301: the PC1 application program sends data messages;
step 302: and searching a routing entry according to the destination IP address of the message. If the destination IP is 192.168.2.X, go to step 306, otherwise go to step 303;
step 303: the destination address is not 192.168.2.X, which shows that the application program accesses the external network, and the next hop IP address of the message is 192.168.1.1 of the IP address of the home gateway;
step 304: the PC1 sends the message to the home gateway;
step 305: the home gateway searches for routing entries and forwards the message from the corresponding WAN connection to the external network;
step 306: matching the upper static directory entry, the next hop IP address of the message is IP address 192.168.1.3 for router WAN connection;
step 307: the PC1 directly sends the message to the router WAN for connection;
step 308: the router WAN connection receives the message and forwards the message to the PC 2.
The process ends.
According to the scheme provided by the embodiment of the invention, when the access equipment accesses the external network, the destination address is a public network address and is not matched with the static route generated by the Option121, the next hop address of the message is the address of the home gateway, and finally the home gateway forwards the message through three layers; when the access device accesses the access device under the router, the destination address is a certain address in the network segment of the router address pool, and is matched with the static route generated by the Option121, the next address of the message is 192.168.1.3, the home gateway directly forwards the message to the LAN port corresponding to the router on the second layer, and then forwards the message to the corresponding access device through the router, thereby realizing that the home gateway access device accesses the access device of the router.
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.

Claims (10)

1. A method of internetworking, comprising:
the gateway access equipment judges whether the data message is sent to an external network or a router connected with the home gateway according to a destination IP address of the data message and a static routing entry issued by the home gateway, wherein the static routing entry comprises a router IP address and a destination descriptor; the destination descriptor comprises a router address pool network segment and a subnet mask;
when the data message is judged to be sent to the external network, the gateway access equipment sends the data message to a home gateway for forwarding to the external network;
and when the data message is judged to be sent to a router connected with the home gateway, the gateway access equipment sends the data message to the router for realizing network interconnection.
2. The method of claim 1, wherein the gateway access device determining whether the data packet is sent to an external network or a router connected to a home gateway according to a destination IP address of the data packet and a static routing entry issued by the home gateway comprises:
the gateway access equipment searches for a static routing entry in a pre-stored routing table according to the destination IP address of the data message;
if the static routing entry in the pre-stored routing table finds a router IP address pool network segment matched with the destination IP address of the data message, the gateway access equipment judges that the datagram is sent to a router connected with a home gateway;
and if the static routing entry in the pre-stored routing table does not find the router IP address pool network segment matched with the destination IP address of the data message, the gateway access equipment judges that the datagram is sent to an external network.
3. The method of claim 2, wherein the gateway access device searching for a static routing entry in a pre-stored routing table according to the destination IP address of the data packet comprises:
the gateway access equipment matches the destination IP address of the data message with the router IP address pool network segment in the static routing entry;
if the destination IP address of the data message is successfully matched with the router IP address pool network segment in the static routing entry, the gateway access equipment determines to find the router IP address pool network segment matched with the destination IP address of the data message in the static routing entry;
and if the destination IP address of the data message fails to be matched with the router IP address pool network segment in the static routing entry, the gateway access equipment determines that the router IP address pool network segment matched with the destination IP address of the data message is not found in the static routing entry.
4. The method of claim 1, further comprising:
the gateway access equipment receives a static routing entry sent by the home gateway by sending a DHCP request message to the home gateway, wherein the static routing entry is a static routing entry which is obtained by the home gateway according to a router address pool network segment and a subnet mask configured to the router, generates a destination descriptor containing the router address pool network segment and the subnet mask, and according to a router IP address allocated to the router and the generated destination descriptor, contains the router IP address and the destination descriptor;
wherein, the DHCP refers to a dynamic host configuration protocol.
5. An apparatus of network interconnection, comprising:
the judging module is used for judging whether the data message is sent to an external network or a router connected with the home gateway according to a destination IP address of the data message and a static routing entry issued by the home gateway, wherein the static routing entry comprises a router IP address and a destination descriptor; the destination descriptor comprises a router address pool network segment and a subnet mask;
the sending external network module is used for sending the data message to a home gateway for forwarding to an external network when judging that the data message is sent to the external network;
and the network interconnection module is used for sending the data message to the router for realizing network interconnection when judging that the data message is sent to the router connected with the home gateway.
6. The apparatus of claim 5, the determining means comprising:
the searching unit is used for searching static routing entries in a pre-stored routing table according to the destination IP address of the data message;
and the judging unit is used for judging that the datagram is sent to a router connected with a home gateway when the router IP address pool network segment matched with the destination IP address of the data message is found by the static routing entry in the pre-stored routing table, and judging that the datagram is sent to an external network when the router IP address pool network segment matched with the destination IP address of the data message is not found by the static routing entry in the pre-stored routing table.
7. The apparatus of claim 6, the lookup unit comprising:
the matching subunit is used for matching the destination IP address of the data message with the router IP address pool network segment in the static routing entry;
and the searching subunit is used for determining that the router IP address pool network segment matched with the destination IP address of the data message is searched in the static routing entry if the destination IP address of the data message is successfully matched with the router IP address pool network segment in the static routing entry, and determining that the router IP address pool network segment matched with the destination IP address of the data message is not searched in the static routing entry if the destination IP address of the data message is unsuccessfully matched with the router IP address pool network segment in the static routing entry.
8. The apparatus of claim 5, the means for determining further comprises: the home gateway is used for sending a DHCP request message to the home gateway and receiving a static routing entry sent by the home gateway, wherein the static routing entry is used for generating a destination descriptor containing a router address pool network segment and a subnet mask according to the router address pool network segment and the subnet mask which are configured to the router by the home gateway, and obtaining the static routing entry containing the router IP address and the destination descriptor according to the router IP address allocated to the router and the generated destination descriptor;
wherein, the DHCP refers to a dynamic host configuration protocol.
9. A networked device, the device comprising: a processor, and a memory coupled to the processor; the memory has stored thereon a network interconnection program executable on the processor, the network interconnection program, when executed by the processor, implementing the steps of the network interconnection method as claimed in any one of claims 1 to 5.
10. A computer storage medium storing a program of network interconnection, which when executed by a processor implements the steps of the method of network interconnection of any one of claims 1 to 5.
CN201810250575.7A 2018-03-26 2018-03-26 Network interconnection method and device Active CN110365557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810250575.7A CN110365557B (en) 2018-03-26 2018-03-26 Network interconnection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810250575.7A CN110365557B (en) 2018-03-26 2018-03-26 Network interconnection method and device

Publications (2)

Publication Number Publication Date
CN110365557A CN110365557A (en) 2019-10-22
CN110365557B true CN110365557B (en) 2021-11-02

Family

ID=68211840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810250575.7A Active CN110365557B (en) 2018-03-26 2018-03-26 Network interconnection method and device

Country Status (1)

Country Link
CN (1) CN110365557B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132218B (en) * 2019-12-31 2023-10-20 中兴通讯股份有限公司 Home gateway access method, device, system processor and storage medium
CN111934936B (en) * 2020-09-10 2023-07-18 广州虎牙科技有限公司 Network state detection method and device, electronic equipment and storage medium
CN112272145B (en) * 2020-10-26 2022-05-24 新华三信息安全技术有限公司 Message processing method, device, equipment and machine readable storage medium
CN113727410B (en) * 2021-10-08 2022-01-28 亿次网联(杭州)科技有限公司 Method and device for directly connecting mobile terminal with home cloud server
CN116032997A (en) * 2022-12-29 2023-04-28 南京先进计算产业发展有限公司 Interconnection method between two subnets in high-performance computing environment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1698046A (en) * 2003-05-12 2005-11-16 索尼株式会社 Inter-apparatus authentication system and inter-apparatus authentication method, communication device, and computer program
CN101052009A (en) * 2007-05-14 2007-10-10 中兴通讯股份有限公司 Method for realizing internal access by NAT device for private net element using public net address
CN101674221A (en) * 2008-09-09 2010-03-17 中国移动通信集团公司 Static routing generation method, method and device for implementing terminal routing
CN102325197A (en) * 2011-05-23 2012-01-18 杭州华三通信技术有限公司 Method for communication between intranet equipment and internet equipment and network address transformation equipment
CN103560959A (en) * 2013-10-25 2014-02-05 瑞斯康达科技发展股份有限公司 Method and device for selecting static route
CN103840995A (en) * 2012-11-26 2014-06-04 华为技术有限公司 IP message processing method, device and network system
CN104301452A (en) * 2014-10-21 2015-01-21 中国联合网络通信集团有限公司 Method and system for distinguishing host access position and inner gateway device
CN104618241A (en) * 2015-01-14 2015-05-13 杭州华三通信技术有限公司 Transmission method and device for three-layer message
CN106034166A (en) * 2015-03-19 2016-10-19 中兴通讯股份有限公司 Method and apparatus for configuring network parameters of local area network,
CN106059932A (en) * 2016-08-08 2016-10-26 杭州华三通信技术有限公司 Routing table item generation method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1998509A1 (en) * 2007-05-29 2008-12-03 Teldat S.A. Transparent backup IP router in a local area network
JP2009111437A (en) * 2007-10-26 2009-05-21 Hitachi Ltd Network system
CN102170380B (en) * 2010-02-25 2014-02-26 杭州华三通信技术有限公司 Method and device for accessing outer network from inner network
CN102215273B (en) * 2010-04-12 2013-11-06 杭州华三通信技术有限公司 Method and device for providing external network access for internal network user
US9590901B2 (en) * 2014-03-14 2017-03-07 Nicira, Inc. Route advertisement by managed gateways

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1698046A (en) * 2003-05-12 2005-11-16 索尼株式会社 Inter-apparatus authentication system and inter-apparatus authentication method, communication device, and computer program
CN101052009A (en) * 2007-05-14 2007-10-10 中兴通讯股份有限公司 Method for realizing internal access by NAT device for private net element using public net address
CN101674221A (en) * 2008-09-09 2010-03-17 中国移动通信集团公司 Static routing generation method, method and device for implementing terminal routing
CN102325197A (en) * 2011-05-23 2012-01-18 杭州华三通信技术有限公司 Method for communication between intranet equipment and internet equipment and network address transformation equipment
CN103840995A (en) * 2012-11-26 2014-06-04 华为技术有限公司 IP message processing method, device and network system
CN103560959A (en) * 2013-10-25 2014-02-05 瑞斯康达科技发展股份有限公司 Method and device for selecting static route
CN104301452A (en) * 2014-10-21 2015-01-21 中国联合网络通信集团有限公司 Method and system for distinguishing host access position and inner gateway device
CN104618241A (en) * 2015-01-14 2015-05-13 杭州华三通信技术有限公司 Transmission method and device for three-layer message
CN106034166A (en) * 2015-03-19 2016-10-19 中兴通讯股份有限公司 Method and apparatus for configuring network parameters of local area network,
CN106059932A (en) * 2016-08-08 2016-10-26 杭州华三通信技术有限公司 Routing table item generation method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
智能家居控制系统的设计与实现;韩雪松;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160315;全文 *

Also Published As

Publication number Publication date
CN110365557A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
CN110365557B (en) Network interconnection method and device
US9319377B2 (en) Auto-split DNS
EP1400092B1 (en) Network address translation of incoming sip connections
JP3574372B2 (en) DNS server, terminal and communication system
US6717944B1 (en) System, device, and method for allocating virtual circuits in a communication network
JP5368459B2 (en) Support for triple operation services in user equipment
JP2000041069A (en) Client constituting method
US7136928B2 (en) Communication device and communication control method using efficient Echonet address determination scheme
JP2003249942A (en) Apparatus for converting internet protocol address, home network system using the same and communication method thereof
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
WO2011147353A1 (en) Method and apparatus for message transmission
WO2010069181A1 (en) Method and system for configuring ipv6 address
JP2013527632A (en) Method and host node for multi-NAT64 environment
CN107094110B (en) DHCP message forwarding method and device
JP2006086800A (en) Communication apparatus for selecting source address
WO2013064049A1 (en) Method for mobile node to dynamically acquire location identifier, and lisp network
US20140313933A1 (en) Method, apparatus, and system for layer 2 interworking based on ipv6
WO2006068747A2 (en) Distributed domain name service
US20060067350A1 (en) Method of assigning network identifiers by means of interface identifiers
CN108023971B (en) DHCP message forwarding method and device
US20090141705A1 (en) Device and method for address-mapping
JP2002217941A (en) Network address reallocating method and router
JP2010062757A (en) Dns proxy apparatus and dns relay method
Cisco AppleTalk Commands
Cisco AppleTalk Commands

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant