CN111131541A - Network communication method, device, electronic equipment and storage medium - Google Patents

Network communication method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111131541A
CN111131541A CN201911361559.6A CN201911361559A CN111131541A CN 111131541 A CN111131541 A CN 111131541A CN 201911361559 A CN201911361559 A CN 201911361559A CN 111131541 A CN111131541 A CN 111131541A
Authority
CN
China
Prior art keywords
data link
link layer
message
layer message
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911361559.6A
Other languages
Chinese (zh)
Other versions
CN111131541B (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.)
Shenzhen Gongjin Electronics Co Ltd
Original Assignee
Shenzhen Gongjin Electronics Co Ltd
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 Shenzhen Gongjin Electronics Co Ltd filed Critical Shenzhen Gongjin Electronics Co Ltd
Priority to CN201911361559.6A priority Critical patent/CN111131541B/en
Publication of CN111131541A publication Critical patent/CN111131541A/en
Application granted granted Critical
Publication of CN111131541B publication Critical patent/CN111131541B/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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2546Arrangements for avoiding unnecessary translation
    • 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
    • H04L12/2858Access network architectures
    • H04L12/2859Point-to-point connection between the data network and the subscribers
    • 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
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The application provides a network communication method, a network communication device, electronic equipment and a storage medium, which are used for solving the problem that an intranet device is difficult to send an original data link layer message to equipment in the Internet through gateway equipment. The method is applied to gateway equipment, and the network communication method comprises the following steps: receiving a first data link layer message from an intranet interface of gateway equipment; and if the source address of the first data link layer message is the physical address of the terminal equipment and the destination address of the first data link layer message is determined to be the address corresponding to the external network equipment, forwarding the first data link layer message to the external network interface, and sending the first data link layer message to the internet through the external network interface.

Description

Network communication method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer networks and network communication technologies, and in particular, to a network communication method, an apparatus, an electronic device, and a storage medium.
Background
Network Address Translation (NAT), which is a technology for realizing mutual Translation between an Internet Protocol (IP) Address of an internal topology Network and an Address of a public Network, converts a large number of intranet IP addresses into one or a small number of public Network IP addresses, and reduces occupation of the public Network IP addresses.
The Point-to-Point Protocol (PPP) refers to a link layer Protocol designed for a simple link for transmitting data packets between peer units. This link layer protocol provides full duplex operation and delivers packets in sequence. PPP is mainly used to establish point-to-point connections by dialing or dedicated lines to send data, making it a common solution for simple connections between various hosts, bridges and routers.
Point-to-Point Protocol Over Ethernet (PPPoE) refers to a network tunneling Protocol that encapsulates Point-to-Point Protocol (PPP) in an Ethernet (Ethernet) frame. The PPP protocol is integrated in the protocol, so that the functions of authentication, encryption, compression and the like which cannot be provided by the traditional Ethernet are realized, and the PPP protocol can also be used for a protocol system of providing access service for users by the Ethernet protocol such as a cable modem, a digital subscriber line and the like.
At present, a home gateway obtains a public network IP address by using a PPPoE account number provided by a network operator for dialing, so that the home gateway communicates with the internet by using the public network IP address, and a NAT technology is used on the home gateway to meet the requirement of communication between an intranet device and the internet, the NAT technology needs to modify a data link layer message, that is, the intranet device is difficult to send an original data link layer message to a device in the internet through a gateway device.
Disclosure of Invention
An object of the embodiments of the present application is to provide a network communication method, an apparatus, an electronic device, and a storage medium, which are used to solve the problem that it is difficult for an intranet device to send an original data link layer packet to a device in the internet through a gateway device.
The embodiment of the application provides a network communication method, which is applied to gateway equipment and comprises the following steps: receiving a first data link layer message from an intranet interface of the gateway equipment; if the source address of the first data link layer message is the physical address of the terminal equipment and the destination address of the first data link layer message is determined to be the address corresponding to the external network interface of the gateway equipment, forwarding the first data link layer message to the external network interface, and sending the first data link layer message to the internet through the external network interface. In the implementation process, the gateway device determines that the source address of the first data link layer message is the physical address of the terminal device, and determines that the destination address of the first data link layer message is the address corresponding to the external network interface, and then sends the data link layer message received from the internal network interface to the internet; so that the terminal equipment in the intranet can send a data link layer message to the internet.
Optionally, in an embodiment of the present application, the method further includes: receiving a second data link layer message from the extranet interface; and if the destination address of the second data link layer message is the physical address of the terminal equipment, forwarding the second data link layer message to the intranet interface, and sending the second data link layer message to the terminal equipment through the intranet interface. In the implementation process, the gateway equipment sends a data link layer message received from the terminal equipment to the Internet; the gateway equipment sends a data link layer message received from an external network interface to the terminal equipment; the gateway device and the internet can communicate with each other through data link layer messages.
Optionally, in this embodiment of the present application, before the receiving the second data link layer packet from the extranet interface, the method further includes: and adding the external network interface to a local area network group so that the gateway equipment receives a data link layer message from the external network interface. In the implementation process, the external network interface is added to the local area network group, so that the gateway device receives the data link layer message from the external network interface, and the gateway device and the internet can better communicate with each other through the data link layer message.
Optionally, in an embodiment of the present application, the method further includes: judging whether the second data link layer message is a point-to-point protocol message on the Ethernet or not; and if not, processing the second data link layer message according to the kernel protocol stack. In the implementation process, if the second data link layer packet is not a point-to-point protocol packet on the ethernet, the second data link layer packet is forwarded to the kernel protocol stack, so that data of the data link layer packet sent by the external network interface is effectively processed.
Optionally, in this embodiment of the present application, after the determining whether the second data link layer packet is a point-to-point protocol packet on an ethernet, the method further includes: and if the second data link layer message is a point-to-point protocol message on the Ethernet and the destination address of the second data link layer message is not the physical address of the terminal equipment, processing the second data link layer message according to a kernel protocol stack. In the implementation process, the second data link layer packet is forwarded to the external network interface by determining that the destination address of the point-to-point protocol packet on the ethernet received by the external network interface is not the physical address of the terminal device, so that the point-to-point protocol packet on the ethernet of the gateway device is effectively processed.
Optionally, in this embodiment of the present application, after the determining whether the second data link layer packet is a point-to-point protocol packet on an ethernet, the method further includes: and if the second data link layer message is a point-to-point protocol message on the Ethernet and the destination address of the second data link layer message is the physical address of the terminal equipment, sending the second data link layer message to the virtual network bridge. In the implementation process, the second data link layer message is sent to the virtual bridge only by determining that the destination address of the point-to-point protocol message on the ethernet received from the external network interface is the physical address of the terminal device, so that the point-to-point protocol message on the ethernet sent to the terminal device is effectively processed.
Optionally, in this embodiment of the present application, the determining whether the second data link layer packet is a point-to-point protocol packet on an ethernet includes: judging whether the protocol number in the second data link layer message is a preset protocol number or not; if yes, determining that the second data link layer message is a point-to-point protocol message on the Ethernet; if not, determining that the second data link layer message is not a point-to-point protocol message on the Ethernet. In the implementation process, whether the protocol number in the second data link layer message is the preset protocol number is judged, and whether the second data link layer message is the point-to-point protocol message on the Ethernet is determined, so that the accuracy of determining the point-to-point protocol message on the Ethernet is effectively increased.
The embodiment of the present application further provides a network communication method, which is applied to a gateway device, and the network communication method includes: receiving a second data link layer message from an external network interface of the gateway device; and if the destination address of the second data link layer message is the physical address of the terminal equipment, forwarding the second data link layer message to an intranet interface of the gateway equipment, and sending the second data link layer message to the terminal equipment through the intranet interface. In the implementation process, if the destination address of the second data link layer message received from the external network interface is determined to be the physical address of the terminal device, the second data link layer message is sent to the terminal device, so that the terminal device in the internal network can receive the data link layer message sent by the internet.
An embodiment of the present application further provides a network communication apparatus, which is applied to a gateway device, and includes: a first message receiving module, configured to receive a first data link layer message from an intranet interface of the gateway device; and the first message sending module is configured to forward the first data link layer message to an extranet interface of the gateway device and send the first data link layer message to the internet through the extranet interface if a source address of the first data link layer message is a physical address of the terminal device and a destination address of the first data link layer message is determined to be an address corresponding to the extranet interface of the gateway device according to an address resolution protocol mapping table of the gateway device.
Optionally, in an embodiment of the present application, the method further includes: the second message receiving module is used for receiving a second data link layer message from the external network interface; and the second message sending module is configured to forward the second data link layer message to the intranet interface and send the second data link layer message to the terminal device through the intranet interface if the destination address of the second data link layer message is the physical address of the terminal device.
Optionally, in an embodiment of the present application, the method further includes: and the local area network group adding module is used for adding the external network interface to a local area network group so that the gateway equipment receives a data link layer message from the external network interface.
Optionally, in an embodiment of the present application, the method further includes: the message protocol judging module is used for judging whether the second data link layer message is a point-to-point protocol message on the Ethernet; and the first message processing module is used for processing the second data link layer message according to a kernel protocol stack if the second data link layer message is not a point-to-point protocol message on the Ethernet.
Optionally, in an embodiment of the present application, the method further includes: and the second message processing module is used for processing the second data link layer message according to a kernel protocol stack if the second data link layer message is a point-to-point protocol message on the Ethernet and the destination address of the second data link layer message is not the physical address of the terminal equipment.
Optionally, in an embodiment of the present application, the method further includes: and the third message processing module is configured to send the second data link layer message to the virtual network bridge if the second data link layer message is a point-to-point protocol message on the ethernet and a destination address of the second data link layer message is a physical address of the terminal device.
Optionally, in this embodiment of the present application, the message protocol determining module includes: the protocol number judging module is used for judging whether the protocol number in the second data link layer message is a preset protocol number or not; a first message determining module, configured to determine that the second data link layer message is a point-to-point protocol message on an ethernet network if a protocol number in the second data link layer message is a preset protocol number; and the second message determining module is used for determining that the second data link layer message is not a point-to-point protocol message on the Ethernet if the protocol number in the second data link layer message is not the preset protocol number.
An embodiment of the present application further provides a network communication apparatus, which is applied to a gateway device, and includes: a second message receiving module, configured to receive a second data link layer message from an extranet interface of the gateway device; and the second message sending module is configured to forward the second data link layer message to an intranet interface of the gateway device and send the second data link layer message to the terminal device through the intranet interface if a destination address of the second data link layer message is a physical address of the terminal device.
An embodiment of the present application further provides an electronic device, including: a processor and a memory storing machine-readable instructions executable by the processor, the machine-readable instructions when executed by the processor performing the method as described above.
The embodiment of the present application also provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method as described above is executed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic diagram showing a network address translation system of a comparative embodiment;
fig. 2 is a schematic diagram of a network communication system provided by an embodiment of the present application;
fig. 3 is a schematic flow chart of a network communication method provided by an embodiment of the present application;
fig. 4 is a schematic flow chart of another network communication method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a network communication device provided in an embodiment of the present application;
fig. 6 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Icon: 100-network address translation system; 110-a home gateway; 120-an intranet device; 130-extranet devices; 200-a network communication system; 210-a gateway device; 220-a terminal device; 230-the internet; 500-a network communication device; 510-a first message receiving module; 520-a first message sending module; 600-an electronic device; 610-a processor; 620-memory; 630-storage medium.
Detailed Description
The technical solution in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Before introducing the network communication method provided by the embodiment of the present application, some concepts related to the embodiment of the present application are introduced, and some concepts related to the embodiment of the present application are as follows:
open System Interconnection (OSI), is a network interconnection model architecture standard promulgated by the ISO organization, which defines a seven-layer framework for network interconnection, where the seven-layer framework includes: a physical layer, a data link layer, a network layer, a transport layer, a session layer, a presentation layer, and an application layer.
The data link layer is a second layer in the OSI reference model, is between the physical layer and the network layer, provides services for the network layer on the basis of the services provided by the physical layer, and the most basic service of the data link layer is to reliably transmit data from the network layer to a target machine network layer of an adjacent node; the data link layer packet refers to a data packet transmitted at the data link layer. The data link layer is divided into a logical link control layer of an upper layer and a medium access control layer of a lower layer.
A Media Access Control (MAC) layer, which refers to a lower sublayer of a data link layer in the OSI model; in a local area network, a MAC address is also referred to as a hardware address, or as a physical address. It is understood that the data link layer message includes: the source MAC address represents a source of transmission of the data link layer message, and the destination MAC address represents a transmission destination of the data link layer message.
An Address Resolution Protocol (ARP), which is a communication Protocol for acquiring a physical Address according to an IP Address; the ARP mapping table refers to a mapping relationship table between an IP address and a MAC address corresponding to the protocol.
Local Area Network (LAN), also called intranet, refers to a regional Network formed in a Local Area, the coverage Area of the Local Area Network is generally within thousands of meters, and the Local Area Network has the characteristics of convenience in installation, cost saving, convenience in expansion and the like, so that the Local Area Network is widely applied in various offices. The local area network can realize functions of file management, application software sharing, printer sharing and the like, and in the using process, the safety of the local area network is maintained, so that the data safety can be effectively protected, and the normal and stable operation of the local area network can be ensured.
Wide Area Networks (WAN), also known as WAN, extranet or public Network, refer to remote networks connecting computers in local Area networks or metropolitan Area networks in different regions for communication; WANs typically span a large physical area, ranging from tens of kilometers to thousands of kilometers, connect many regions, cities and continents and provide long-range communications, forming international long-range networks.
Asynchronous Transfer Mode (ATM), which is a cell-based packet switching and multiplexing technology, is a common connection-oriented transport Mode designed for multiple services, and is a switching technology based on circuit switching and packet switching.
Packet Transfer Mode (PTM) is a method in which information to be transmitted in a communication network is divided into a short information unit, and each piece of information is added with a call control signal and check information required for switching, and then arranged into a packet according to a predetermined format, and the packet is transmitted as a whole in the network.
Digital Subscriber Line (DSL) refers to a combination of transmission technologies using a telephone Line as a transmission medium, and is a technology developed by the american bell institute of communications for video on demand service in 1989 and used for transmitting high-speed data by using a twisted pair. The DSL comprises: asymmetric digital subscriber lines, ultra high speed digital subscriber lines, and the like.
Asymmetric Digital Subscriber Line (ADSL) refers to a service in Digital Subscriber Line services, and has a high speed downlink channel (Downstream) to a Subscriber end, an uplink channel (Upstream) and a POTS channel, and the POTS channel is used to ensure that voice communication can still operate normally even if the ADSL connection fails.
Very-high-speed Digital Subscriber line (VDSL), refers to an asymmetric DSL technique; VDSL, like ADSL technology, also uses twisted pair wires for voice and data transmission. VDSL is to install VDSL on the existing telephone line, and only one VDSL modem needs to be installed on the user side.
Please refer to fig. 1, which shows a schematic diagram of a network address translation system according to a comparative embodiment; the network address translation system 100 includes: home gateway 110, intranet device 120, and extranet device 130; the home gateway 110 is connected to the intranet device 120 and the extranet device 130 through different interfaces, respectively, so that the intranet device 120 and the extranet device 130 can communicate through the home gateway 110 by using NAT technology, which of course includes: static NAT (Static NAT), Dynamic NAT (Dynamic NAT), and Port Address Translation (PAT), for ease of understanding and explanation, only Static NAT is described here as an example; in the figure, intranet device 120 is connected to home gateway 110 by a solid line, and the solid line connection indicates that intranet device 120 is directly connected to home gateway 110, for example: the network cable connection is directly used or the wireless connection is used in a wireless network card mode; the home gateway 110 and the external network device 130 are connected by a dashed line in the figure, and the dashed line connection indicates that the home gateway 110 and the external network device 130 are not directly connected, that is, there may be other devices connected between the home gateway 110 and the external network device 130, and this is merely an illustration here, for example: also connected between the home gateway 110 and the external network device 130 are a number of routers or switches, etc.
As can be seen from the figure, when the intranet device 120 sends a data link layer packet to the intranet device 130, after the home gateway 110 receives the data link layer packet, the home gateway 110 opens the data link layer packet to obtain a network layer packet, obtains a destination MAC address corresponding to a destination IP address of the network layer packet and a source MAC address corresponding to the destination MAC address, modifies the destination MAC address of the data link layer packet into the destination MAC address corresponding to the destination IP address of the network layer packet, and modifies the source MAC address of the data link layer packet into the source MAC address corresponding to the destination IP address of the network layer packet; then the home gateway 110 needs to modify the source IP address of the network layer packet to the interface IP address of the home gateway 110 connected to the external network device 130.
The above process specifically includes, for example: the home gateway receives a data message from an intranet interface, wherein the source IP address is 192.168.1.3, the source MAC address is AA, the destination IP address is 1.1.1.2 and the destination MAC address is B1, searches and modifies the destination MAC address corresponding to the destination IP address of 1.1.1.2 as CC and the source MAC address corresponding to the destination IP address of 1.1.1.2 as B2, and the home gateway needs to modify the source IP address of the data message into 20.1.1.1 and then sends the modified data message from the intranet interface, wherein the source IP address is 20.0.0.1, the source MAC address is B2, the destination IP address is 1.1.1.2 and the destination MAC address is CC; wherein 192.168.1.3 is the IP address of the intranet device, 1.1.1.2 is the IP address of the extranet device that needs to be accessed, and 20.1.1.1 is the interface IP address of the home gateway connected with the extranet device.
It can be understood that, when the external network device 130 sends a data link layer packet to the internal network device 120, after the home gateway 110 receives the data link layer packet, the home gateway 110 opens the data link layer packet to obtain a network layer packet, obtains a destination MAC address corresponding to a destination IP address of the network layer packet and a source MAC address corresponding to the destination MAC address, modifies the destination MAC address of the data link layer packet into the destination MAC address corresponding to the destination IP address of the network layer packet, and modifies the source MAC address of the data link layer packet into the source MAC address corresponding to the destination IP address of the network layer packet; then, the home gateway 110 needs to modify the destination IP address of the network layer packet to the interface IP address of the connection between the home gateway 110 and the intranet device 120.
The above process specifically includes, for example: the home gateway receives a data message from an external network interface, wherein the data message comprises a source IP address of 1.1.1.2, a source MAC address of CC, a destination IP address of 20.1.1.1 and a destination MAC address of B2, a destination MAC address corresponding to the destination IP address of 20.1.1.1 is searched and modified as AA, a source MAC address corresponding to the destination IP address of 20.1.1.1 is B1, the home gateway needs to modify the destination IP address of the data message into 192.168.1.3, and then the modified data message comprises the source IP address of 1.1.1.2, the source MAC address of B1, the destination IP address of 192.168.1.3 and the destination MAC address of AA, and the data message is sent out from the internal network interface; wherein, 1.1.1.2 is the IP address of the external network device, 20.1.1.1 is the interface IP address of the connection between the home gateway and the external network device, and 192.168.1.3 is the IP address of the internal network device.
As can be seen from the above description, in the process that the intranet device 120 and the extranet device 130 can communicate through the home gateway 110 by using the NAT technology, the home gateway 110 modifies not only the source MAC address and the destination MAC address of the data link layer packet of the intranet device 120 to the extranet device 130, but also modifies the source IP address of the network layer packet of the intranet device 120 to the extranet device 130; accordingly, the home gateway 110 modifies not only the source MAC address and the destination MAC address of the data link layer packet of the external network device 130 to the internal network device 120, but also the destination IP address of the network layer packet of the external network device 130 to the internal network device 120.
Please refer to fig. 2, which is a schematic diagram of a network communication system provided by the embodiment of the present application; the network communication system 200 includes: gateway device 210, terminal device 220, and internet 230; in the figure, the meanings of the solid line connection and the dotted line connection are the same as those in fig. 1, and please refer to fig. 1 for details, the network communication method provided in the embodiment of the present application may be applied to the gateway device 210 in the network communication system 200, and the gateway device 210 is connected to the terminal device 220 and the internet 230 through different interfaces, respectively, so that the terminal device 220 communicates through the gateway device 210 using the bridge forwarding mode. As can be seen from fig. 2, when the terminal device 220 sends a data link layer packet to the internet 230, after receiving the data link layer packet, the gateway device 210 does not modify not only the source MAC address and the destination MAC address of the data link layer packet, but also the source IP address and the destination IP address of the network layer packet.
It should be noted that the network communication method provided in this embodiment of the present application may be executed by the home gateway and the gateway device described above, or may be executed by any gateway device capable of loading a data link layer protocol and a network layer protocol, where the home gateway or the gateway device refers to a network device that is not an ultimate recipient of data traffic, but merely forwards the data traffic to the ultimate recipient; the network device here specifically includes: three-layer switches, two-layer routers, access layer routers, and the like.
Before introducing the network communication method provided in the embodiment of the present application, an application scenario applicable to the network communication method is introduced, where the application scenario includes, but is not limited to: the network communication method is used for enabling the internal network equipment and the external network equipment to communicate with each other, the network communication method is used for dialing by adopting a PPPoE protocol, the network communication method is used for enabling the internal network equipment to obtain a public network IP address, the network communication method is used for enabling the internal network equipment to provide various services by the public network IP address, and the like; the provision of various services herein includes: secure Shell (SSH) Protocol services, database communication services, and/or hypertext Transfer Protocol (HTTP) services, among others.
Please refer to fig. 3, which is a schematic flow chart of a network communication method according to an embodiment of the present application; the network communication method may be applied to the gateway apparatus described above, and the network communication method may include: processing an intranet message and/or processing an extranet message, wherein the processing of the intranet message refers to a method for processing a data link layer message received from an intranet interface of gateway equipment, and correspondingly, the processing of the extranet message refers to a method for processing a data link layer message received from an extranet interface of the gateway equipment; here, the processing of the intranet packet is described first, and the processing of the intranet packet may include the following steps:
step S310: the gateway device receives a first data link layer message from an intranet interface of the gateway device.
The intranet interface refers to a network interface or a network port in hardware meaning, where the gateway device is directly connected to the local area network or the intranet, and specifically includes: the MAC address of the network interface with B1 in the home gateway or the MAC address of the network interface with B1 in the gateway device. The first data link layer packet refers to a data link layer packet received from an intranet interface of the gateway device.
The embodiment of receiving the first data link layer packet from the intranet interface of the gateway device is, for example: the gateway equipment receives a first data link layer message from the intranet interface, and performs following message address matching and message forwarding actions after receiving the first data link layer message.
Step S320: if the source address of the first data link layer message is the physical address of the terminal device, and the destination address of the first data link layer message is determined to be the address corresponding to the external network interface of the gateway device according to the address resolution protocol mapping table of the gateway device, the gateway device forwards the first data link layer message to the external network interface, and sends the first data link layer message to the internet through the external network interface.
The external network interface refers to a network interface or a network port in hardware sense, where the gateway device is directly connected to the wide area network, the internet, the external network, or the public network, and specifically includes: the MAC address of the network interface with B2 in the home gateway or the MAC address of the network interface with B2 in the gateway device. It will be appreciated that the gateway device may communicate with the wide area network, the internet, an extranet or a public network described above via an extranet interface.
The embodiment of forwarding the first data link layer packet to the extranet interface and sending the first data link layer packet to the internet through the extranet interface includes: the first data link layer packet is forwarded to the extranet interface B2 and sent to the internet through the extranet interface B2.
In the implementation process, the gateway device determines that the source address of the first data link layer message is the physical address of the terminal device, and determines that the destination address of the first data link layer message is the address corresponding to the external network interface, and then sends the data link layer message received from the internal network interface to the internet; so that the terminal equipment in the intranet can send a data link layer message to the internet.
The above-mentioned determining that the destination address of the first data link layer packet is an address corresponding to the external network interface, that is, determining that the destination of the packet is the internet, has two situations: in the first case, the gateway device does not find the destination address of the message according to the ARP mapping table and the forwarding database table; in the second case, the gateway device finds out the interface corresponding to the destination address of the message as the external network interface according to the ARP mapping table and the forwarding database table; first, a first case is described, and then a first case of determining that the message is destined for the internet may include the steps of:
step S321: if the interface corresponding to the destination address of the first data link layer message is not inquired in the address resolution protocol mapping table and the forwarding database table, the gateway device determines that the destination address of the first data link layer message is the address corresponding to the external network interface.
A Forwarding DataBase table (FDB) refers to a table that receives MAC address information from all ports of a gateway device, forms a MAC address table, and maintains the MAC address table, and may be referred to as an FDB table herein. Forwarding data records in a database table can be augmented in two ways: in the first mode, the gateway device learns and obtains and adds data records; the second way, data records are manually added by hand.
It is to be understood that the ARP mapping table is a mapping table of IP addresses and MAC addresses and then can be expressed as a correspondence between a first column and a second column in the following table, and the FDB table described above is a mapping table of MAC addresses and corresponding interfaces and then can be expressed as a correspondence between a second column and a third column in the following table.
The embodiments that do not query the interface corresponding to the destination address of the first data link layer packet in the ARP mapping table and the forwarding database table are, for example: if the destination address of the first data link layer message is CC, and no record is found in the ARP mapping table below, the destination address of the first data link layer message is determined to be the address corresponding to the external network interface, that is, the first data link layer message can be forwarded to the external network interface.
IP address MAC address Corresponding interface
20.2.1.1 AA Intranet interface
20.2.1.2 B1 Intranet interface
20.1.1.1 B2 External network interface
As described above, there are two cases in determining that the message is destined for the internet, the first case is described above, and the second case is described below, and then the second case may include the following steps:
step S322: if the interface corresponding to the destination address of the first data link layer message is found in the address resolution protocol mapping table and the forwarding database table as the external network interface, the gateway device determines that the destination address of the first data link layer message is the address corresponding to the external network interface.
The embodiment that the interface corresponding to the destination address of the first data link layer packet is an external network interface is found in the ARP mapping table, for example: if the destination address of the first data link layer message is CC, the interface corresponding to the CC is found in the ARP mapping table below, and the destination address of the first data link layer message is determined to be the address corresponding to the extranet interface, that is, the first data link layer message can be forwarded to the extranet interface.
IP address MAC address Corresponding interface
20.2.1.1 AA Intranet interface
20.2.1.2 B1 Intranet interface
20.1.1.1 B2 External network interface
1.1.1.2 CC External network interface
In the implementation process, if the destination address of the message cannot be queried in the address resolution protocol mapping table and the forwarding database table, or the interface corresponding to the destination address of the first data link layer message is queried in the address resolution protocol mapping table as the extranet interface, it is determined that the destination address of the first data link layer message is the address corresponding to the extranet interface, so that the sending speed of the first data link layer message is effectively accelerated.
As described above, the network communication method described above may include: processing an intranet packet and/or processing an extranet packet, wherein the processing of the intranet packet is described above, and the processing of the extranet packet is described below, and the processing of the extranet packet may include the following steps:
step S330: the gateway device receives a second data link layer message from the extranet interface.
The implementation principle and implementation manner of this step are similar to those of step S310, and the difference is only that step S310 receives a data link layer packet from the intranet interface, and step S330 receives a data link layer packet from the extranet interface, so the implementation manner and implementation principle of this step are not described here, and reference may be made to the description of step S310 if it is not clear.
Of course, in the embodiment of the present application, before receiving the second data link layer packet from the extranet interface, that is, before step S330, the capability of the gateway device to process the data link layer packet using the extranet interface needs to be enabled, where the method for enabling is various, specifically, the method is different according to the operating system of the gateway device, and if the operating system of the gateway device is a Linux operating system, one of the embodiments for enabling the gateway device to process the data link layer packet may include the following steps:
step S331: the gateway device adds the extranet interface to the lan group so that the gateway device receives the data link layer packet from the extranet interface.
Local area network group (LAN group) refers to a virtual LAN group that enables an extranet interface to process data link layer packets, for example: in the Linux system, a two-layer interface of the extranet interface may be added to the LANGroup through a Linux common command brctl.
Examples of embodiments that add an extranet interface to a lan group are: the layer two interface of the extranet interface can be, for example, a WAN layer two interface of PPPoE, which is added to the LAN Group by the application layer module using a Linux common command brctl; the external network interface may be divided into different two-layer interfaces according to different wan protocols, for example: if the wide area network protocol corresponding to the external network interface is the ADSL protocol, the two-layer interface of the external network interface can be an ATM interface; if the wide area network protocol corresponding to the external network interface is the VDSL protocol, the two-layer interface of the external network interface may be a PTM interface, and if the external network interface is an optical uplink or an ETH uplink, the two-layer interface of the external network may be an ETH interface, or the like.
In the implementation process, the external network interface is added to the local area network group, so that the gateway device receives the data link layer message from the external network interface, and the gateway device and the internet can better communicate with each other through the data link layer message.
Step S340: if the destination address of the second data link layer message is the physical address of the terminal device, the gateway device forwards the second data link layer message to the intranet interface, and sends the second data link layer message to the terminal device through the intranet interface.
The gateway device forwards the second data link layer packet to the intranet interface, and sends the second data link layer packet to the terminal device through the intranet interface, for example, in an embodiment: if the destination address of the second data link layer packet is AA and the physical address of the terminal device is AA, the destination address of the second data link layer packet is the physical address of the terminal device, and the gateway device forwards the second data link layer packet to the intranet interface B1 and sends the second data link layer packet to the terminal device through the intranet interface B1.
In the implementation process, the gateway equipment sends a data link layer message received from the terminal equipment to the Internet; the gateway equipment sends a data link layer message received from an external network interface to the terminal equipment; the gateway device and the internet can communicate with each other through data link layer messages.
Optionally, in this embodiment of the present application, in addition to the gateway device being capable of processing the data link layer packet, the gateway device may be further capable of processing a point-to-point protocol packet on the ethernet, and then the processing of the point-to-point protocol packet on the ethernet may include the following steps:
step S350: the gateway device determines whether the second data link layer packet is a point-to-point protocol packet on the ethernet.
The step of determining whether the second data link layer packet is a point-to-point protocol packet on the ethernet may include the following steps, that is, the step S350 may include the following steps:
step S351: and the gateway equipment judges whether the protocol number in the second data link layer message is a preset protocol number.
The preset protocol number refers to a protocol number of a point-to-point protocol packet (PPPoE) on the ethernet, and specifically includes: 0x8863 or 0x 8864; the protocol number 0x8863 indicates that the message is the protocol data of the PPPoE message, and the protocol number 0x8864 indicates that the message is the load data and session protocol message of the PPPoE message.
Step S352: if the protocol number in the second data link layer message is the preset protocol number, the gateway device determines that the second data link layer message is a point-to-point protocol message on the Ethernet.
If the protocol number in the second data link layer message is the preset protocol number, the gateway device determines that the second data link layer message is a point-to-point protocol message on the ethernet, for example: if the protocol number in the second data link layer message is 0x8863, determining that the second data link layer message is protocol data of PPPoE; and if the protocol number in the second data link layer message is 0x8864, determining that the second data link layer message is the PPPoE load data and the session protocol message.
Step S353: if the protocol number in the second data link layer message is not the preset protocol number, the gateway device determines that the second data link layer message is not a point-to-point protocol message on the Ethernet.
If the protocol number in the second data link layer message is not the preset protocol number, the gateway device determines that the second data link layer message is not a point-to-point protocol message on the ethernet, for example: if the protocol number in the second data link layer message is not 0x8863 or 0x8864, the gateway device determines that the second data link layer message is not a point-to-point protocol message on the ethernet.
In the implementation process, whether the protocol number in the second data link layer message is the preset protocol number is judged, and whether the second data link layer message is the point-to-point protocol message on the Ethernet is determined, so that the accuracy of determining the point-to-point protocol message on the Ethernet is effectively increased.
Step S360: and if the second data link layer message is not a point-to-point protocol message on the Ethernet, the gateway equipment processes the second data link layer message according to the kernel protocol stack.
The kernel protocol stack refers to a kernel protocol stack in an operating system, and specifically includes: a core protocol stack of TCP/IP in a Linux system or a core protocol stack of TCP/IP in a Windows system.
If the second data link layer packet is not a point-to-point protocol packet on the ethernet, the gateway device processes the second data link layer packet according to the kernel protocol stack, for example: if the second data link layer message is not a point-to-point protocol message on the Ethernet, the gateway device processes the second data link layer message by using a TCP/IP kernel protocol stack in the Linux system; the second data link layer packet is not a point-to-point protocol packet on the ethernet, and if there are other electronic devices in the intranet, where the electronic device is, for example, an intranet device above, the second data link layer packet should be processed by using the NAT technology.
In the implementation process, if the second data link layer packet is not a point-to-point protocol packet on the ethernet, the second data link layer packet is forwarded to the kernel protocol stack, so that data of the data link layer packet sent by the external network interface is effectively processed.
Step S370: and if the second data link layer message is a point-to-point protocol message on the Ethernet and the destination address of the second data link layer message is not the physical address of the terminal equipment, the gateway equipment processes the second data link layer message according to the kernel protocol stack.
If the second data link layer packet is a point-to-point protocol packet on the ethernet and the destination address of the second data link layer packet is not the physical address of the terminal device, the gateway device processes the second data link layer packet according to the kernel protocol stack in the following embodiments: if the second data link layer message is a PPPoE message and the destination address of the second data link layer message is not the physical address AA of the terminal device, the gateway device processes the second data link layer message according to the kernel protocol stack, where the second data link layer message is the PPPoE message and the destination address of the second data link layer message is not the physical address AA of the terminal device, which indicates that the PPPoE message is a PPPoE message that the gateway device should process itself, and the gateway device processes the second data link layer message according to the kernel protocol stack includes: and the PPPoE message is transferred to a network layer protocol processing module of the gateway equipment for processing.
In the implementation process, the second data link layer packet is forwarded to the external network interface by determining that the destination address of the point-to-point protocol packet on the ethernet received by the external network interface is not the physical address of the terminal device, so that the point-to-point protocol packet on the ethernet of the gateway device is effectively processed.
Optionally, a virtual bridge may be operated in the gateway device; the bridge in the embodiment of the present application may refer to a virtual bridge in the gateway device; specific examples thereof include: if the gateway device is a Linux system, the bridge may refer to a virtual bridge in the gateway device, and the gateway device processes the data link layer packet using the virtual bridge. After determining whether the second data link layer packet is a point-to-point protocol packet on the ethernet, that is, after step S350, the network communication method may further include the steps of:
step S380: if the second data link layer message is a point-to-point protocol message on the Ethernet and the destination address of the second data link layer message is the physical address of the terminal device, the gateway device sends the second data link layer message to the virtual network bridge.
If the second data link layer packet is a point-to-point protocol packet on the ethernet and the destination address of the second data link layer packet is the physical address of the terminal device, the gateway device sends the second data link layer packet to the virtual bridge in an embodiment, for example: if the second data link layer message is a PPPoE message and the destination address of the second data link layer message is the physical address AA of the terminal device, the gateway device processes the second data link layer message by using the virtual bridge.
It should be noted that, by the method in steps S310 to S380, the terminal device in the intranet may communicate with the internet device in the extranet through the data link layer packet, while other devices in the intranet still communicate with the internet device in the extranet through the network layer packet, and the gateway device processes and forwards the data link layer packet and the network layer packet, where the gateway device may also use at least one technology, such as: the gateway device may use NAT technology or the like for other devices in the intranet. That is to say, on the premise that the above-mentioned gateway device uses the NAT technology, the terminal device may also communicate with the internet device of the external network through a data link layer packet, where the internet device may be a PPPoE dial-up authentication server of an operator, that is, the load data in the data link layer packet may be a PPPoE packet, so that the terminal device obtains an independent public network IP address, so that the terminal device provides various services in the form of an independent public network IP address, and common services are, for example: SSH protocol services and HTTP services, etc.; therefore, the above method can also be understood that the gateway device combines the characteristics of the bridge and the PPPoE, thereby completing a pass-through function of PPPoE, that is, allowing a preset terminal device to communicate with an external network device through a data link layer message on the gateway device which implements the routing function by default. Further, the public IP address can be resolved by a domain name provided by a domain name server of the internet, for example: the domain name here is a.com, and when the user accesses a.com using PING command, the a.com can be resolved to obtain the public network IP address here.
In the implementation process, the second data link layer message is sent to the virtual bridge only by determining that the destination address of the point-to-point protocol message on the ethernet received from the external network interface is the physical address of the terminal device, so that the point-to-point protocol message on the ethernet sent to the terminal device is effectively processed.
Please refer to fig. 4, which is a schematic flow chart of another network communication method provided in the embodiment of the present application; the embodiment of the application provides a network communication method, which is applied to gateway equipment and comprises the following steps:
step S410: a second data link layer message is received from an extranet interface of the gateway device.
Step S420: and if the destination address of the second data link layer message is the physical address of the terminal equipment, forwarding the second data link layer message to an intranet interface of the gateway equipment, and sending the second data link layer message to the terminal equipment through the intranet interface.
In the implementation process, if the destination address of the second data link layer message received from the external network interface is determined to be the physical address of the terminal device, the second data link layer message is sent to the terminal device, so that the terminal device in the internal network can receive the data link layer message sent by the internet.
Please refer to fig. 5, which is a schematic structural diagram of a network communication device according to an embodiment of the present application; the embodiment of the present application provides a network communication apparatus 500, which is applied to a gateway device 210, and includes:
the first packet receiving module 510 is configured to receive a first data link layer packet from an intranet interface of the gateway device.
The first packet sending module 520 is configured to, if the source address of the first data link layer packet is the physical address of the terminal device, and it is determined according to the address resolution protocol mapping table of the gateway device that the destination address of the first data link layer packet is the address corresponding to the extranet interface of the gateway device, forward the first data link layer packet to the extranet interface, and send the first data link layer packet to the internet through the extranet interface.
Optionally, in an embodiment of the present application, the apparatus further includes:
and the second message receiving module is used for receiving a second data link layer message from the external network interface.
And the second message sending module is used for forwarding the second data link layer message to the intranet interface and sending the second data link layer message to the terminal equipment through the intranet interface if the destination address of the second data link layer message is the physical address of the terminal equipment.
Optionally, in this embodiment of the present application, the method may further include:
and the local area network group adding module is used for adding the external network interface to the local area network group so that the gateway equipment receives the data link layer message from the external network interface.
Optionally, in this embodiment of the present application, the apparatus may further include:
and the message protocol judging module is used for judging whether the second data link layer message is a point-to-point protocol message on the Ethernet.
And the first message processing module is used for processing the second data link layer message according to the kernel protocol stack if the second data link layer message is not a point-to-point protocol message on the Ethernet.
Optionally, in this embodiment of the present application, the network communication apparatus further includes:
and the second message processing module is used for processing the second data link layer message according to the kernel protocol stack if the second data link layer message is a point-to-point protocol message on the Ethernet and the destination address of the second data link layer message is not the physical address of the terminal equipment.
Optionally, in an embodiment of the present application, the method further includes:
and the third message processing module is used for sending the second data link layer message to the virtual network bridge if the second data link layer message is a point-to-point protocol message on the Ethernet and the destination address of the second data link layer message is the physical address of the terminal equipment.
Optionally, in this embodiment of the present application, the message protocol determining module includes:
and the protocol number judging module is used for judging whether the protocol number in the second data link layer message is a preset protocol number.
And the first message determining module is used for determining that the second data link layer message is a point-to-point protocol message on the Ethernet if the protocol number in the second data link layer message is a preset protocol number.
And the second message determining module is used for determining that the second data link layer message is not a point-to-point protocol message on the Ethernet if the protocol number in the second data link layer message is not the preset protocol number.
An embodiment of the present application further provides a network communication apparatus, which is applied to a gateway device, and includes:
and the second message receiving module is used for receiving a second data link layer message from the external network interface of the gateway equipment.
And the second message sending module is used for forwarding the second data link layer message to an intranet interface of the gateway device and sending the second data link layer message to the terminal device through the intranet interface if the destination address of the second data link layer message is the physical address of the terminal device.
It should be understood that the apparatus corresponds to the above method embodiment, and can perform the steps related to the above method embodiment, the specific functions of the apparatus can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy. The device includes at least one software function that can be stored in memory in the form of software or firmware (firmware) or solidified in the Operating System (OS) of the device.
Please refer to fig. 6 for a schematic structural diagram of an electronic device according to an embodiment of the present application. An electronic device 600 provided in an embodiment of the present application includes: a processor 610 and a memory 620, the memory 620 storing machine readable instructions executable by the processor 610, the machine readable instructions when executed by the processor 610 perform the method as above.
The embodiment of the present application further provides a storage medium 630, where the storage medium 630 stores a computer program, and the computer program is executed by the processor 610 to perform the method as above.
The storage medium 630 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an alternative embodiment of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present application, and all the changes or substitutions should be covered by the scope of the embodiments of the present application.

Claims (11)

1. A network communication method is applied to a gateway device, and comprises the following steps:
receiving a first data link layer message from an intranet interface of the gateway equipment;
if the source address of the first data link layer message is the physical address of the terminal equipment and the destination address of the first data link layer message is determined to be the address corresponding to the external network interface of the gateway equipment, forwarding the first data link layer message to the external network interface, and sending the first data link layer message to the internet through the external network interface.
2. The method of claim 1, further comprising:
receiving a second data link layer message from the extranet interface;
and if the destination address of the second data link layer message is the physical address of the terminal equipment, forwarding the second data link layer message to the intranet interface, and sending the second data link layer message to the terminal equipment through the intranet interface.
3. The method of claim 2, further comprising, prior to said receiving a second data link layer packet from said extranet interface:
and adding the external network interface to a local area network group so that the gateway equipment receives a data link layer message from the external network interface.
4. The method of claim 2, further comprising:
judging whether the second data link layer message is a point-to-point protocol message on the Ethernet or not;
and if not, processing the second data link layer message according to the kernel protocol stack.
5. The method of claim 4, wherein after said determining whether the second data link layer packet is a point-to-point protocol over ethernet packet, further comprising:
and if the second data link layer message is a point-to-point protocol message on the Ethernet and the destination address of the second data link layer message is not the physical address of the terminal equipment, processing the second data link layer message according to a kernel protocol stack.
6. The method of claim 4, wherein after said determining whether the second data link layer packet is a point-to-point protocol over ethernet packet, further comprising:
and if the second data link layer message is a point-to-point protocol message on the Ethernet and the destination address of the second data link layer message is the physical address of the terminal equipment, sending the second data link layer message to the virtual network bridge.
7. The method according to any of claims 4-6, wherein said determining whether said second data link layer packet is a point-to-point protocol over ethernet packet comprises:
judging whether the protocol number in the second data link layer message is a preset protocol number or not;
if yes, determining that the second data link layer message is a point-to-point protocol message on the Ethernet;
if not, determining that the second data link layer message is not a point-to-point protocol message on the Ethernet.
8. A network communication method is applied to a gateway device, and comprises the following steps:
receiving a second data link layer message from an external network interface of the gateway device;
and if the destination address of the second data link layer message is the physical address of the terminal equipment, forwarding the second data link layer message to an intranet interface of the gateway equipment, and sending the second data link layer message to the terminal equipment through the intranet interface.
9. A network communication apparatus, applied to a gateway device, comprising:
a first message receiving module, configured to receive a first data link layer message from an intranet interface of the gateway device;
and the first message sending module is used for forwarding the first data link layer message to the extranet interface and sending the first data link layer message to the internet through the extranet interface if the source address of the first data link layer message is the physical address of the terminal equipment and the destination address of the first data link layer message is determined to be the address corresponding to the extranet interface of the gateway equipment.
10. An electronic device, comprising: a processor and a memory, the memory storing machine-readable instructions executable by the processor, the machine-readable instructions, when executed by the processor, performing the method of any of claims 1 to 8.
11. A storage medium, having stored thereon a computer program which, when executed by a processor, performs the method of any one of claims 1 to 8.
CN201911361559.6A 2019-12-25 2019-12-25 Network communication method, device, electronic equipment and storage medium Active CN111131541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911361559.6A CN111131541B (en) 2019-12-25 2019-12-25 Network communication method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911361559.6A CN111131541B (en) 2019-12-25 2019-12-25 Network communication method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111131541A true CN111131541A (en) 2020-05-08
CN111131541B CN111131541B (en) 2023-02-03

Family

ID=70502641

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911361559.6A Active CN111131541B (en) 2019-12-25 2019-12-25 Network communication method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111131541B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614565A (en) * 2020-05-19 2020-09-01 青岛海信宽带多媒体技术有限公司 Message forwarding method and gateway
CN111884916A (en) * 2020-07-24 2020-11-03 杭州希益丰新业科技有限公司 Proxy gateway system for realizing transparent transmission based on multi-network-port computer
CN112235175A (en) * 2020-09-01 2021-01-15 深圳市共进电子股份有限公司 Access method and access device of network bridge equipment and network bridge equipment
CN113328921A (en) * 2021-05-10 2021-08-31 联想(北京)有限公司 Data link layer communication method and device of virtual network
CN114157684A (en) * 2020-08-18 2022-03-08 华为终端有限公司 Message processing method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69423071D1 (en) * 1993-06-17 2000-03-30 Timeplex Inc NODE POINT FOR A DIVIDED VIRTUAL LOCAL NETWORK
CN1980176A (en) * 2006-11-15 2007-06-13 杭州华为三康技术有限公司 Mixed virtual private network system and backbone network edge apparatus and configuration method
CN101166141A (en) * 2006-10-20 2008-04-23 中国科学院声学研究所 Built-in network terminal with routing function and its routing function realization method
CN103516609A (en) * 2013-09-17 2014-01-15 杭州华三通信技术有限公司 Method and equipment for transmitting service messages
CN103685006A (en) * 2012-08-30 2014-03-26 杭州华三通信技术有限公司 Packet forwarding method for edge device and edge device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69423071D1 (en) * 1993-06-17 2000-03-30 Timeplex Inc NODE POINT FOR A DIVIDED VIRTUAL LOCAL NETWORK
CN101166141A (en) * 2006-10-20 2008-04-23 中国科学院声学研究所 Built-in network terminal with routing function and its routing function realization method
CN1980176A (en) * 2006-11-15 2007-06-13 杭州华为三康技术有限公司 Mixed virtual private network system and backbone network edge apparatus and configuration method
CN103685006A (en) * 2012-08-30 2014-03-26 杭州华三通信技术有限公司 Packet forwarding method for edge device and edge device
CN103516609A (en) * 2013-09-17 2014-01-15 杭州华三通信技术有限公司 Method and equipment for transmitting service messages

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614565A (en) * 2020-05-19 2020-09-01 青岛海信宽带多媒体技术有限公司 Message forwarding method and gateway
CN111884916A (en) * 2020-07-24 2020-11-03 杭州希益丰新业科技有限公司 Proxy gateway system for realizing transparent transmission based on multi-network-port computer
CN114157684A (en) * 2020-08-18 2022-03-08 华为终端有限公司 Message processing method, device and storage medium
CN114157684B (en) * 2020-08-18 2024-01-02 华为终端有限公司 Message processing method, device and storage medium
CN112235175A (en) * 2020-09-01 2021-01-15 深圳市共进电子股份有限公司 Access method and access device of network bridge equipment and network bridge equipment
CN112235175B (en) * 2020-09-01 2022-03-18 深圳市共进电子股份有限公司 Access method and access device of network bridge equipment and network bridge equipment
CN113328921A (en) * 2021-05-10 2021-08-31 联想(北京)有限公司 Data link layer communication method and device of virtual network

Also Published As

Publication number Publication date
CN111131541B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN111131541B (en) Network communication method, device, electronic equipment and storage medium
US10158502B2 (en) Network device that relays communication
US7835370B2 (en) System and method for DSL subscriber identification over ethernet network
US7167923B2 (en) System and method for selectively bridging and routing data packets between multiple networks
EP1875668B1 (en) Scalable system method for dsl subscriber traffic over an ethernet network
US7336682B2 (en) Network architecture and methods for transparent on-line cross-sessional encoding and transport of network communications data
JP5335886B2 (en) Method and apparatus for communicating data packets between local networks
JP4154615B2 (en) SIP server sharing module device, SIP message relay method, and program
US6697377B1 (en) Method for communicating audio data in a packet switched network
EP1693996B1 (en) Automatic discovery of psuedo-wire peer addresses in ethernet-based networks
EP1137238A2 (en) System and method for integrated communications over a local IP network
JP2007104440A (en) Packet transmission system, its method, and tunneling device
JP5506933B2 (en) Method and system for realizing network intercommunication
US20080165781A1 (en) Layer 2 address translation for service provider wholesale IP sessions
US20050232273A1 (en) Communications system and a gateway device
EP1633084A1 (en) Method for selecting services provided by different network service providers
US8050278B2 (en) Method and system for communicating with a virtual circuit network
JP2002124963A (en) Use method of internet protocol address in private internet protocol address domain
CA2484253A1 (en) Method and device for modem relay termination
EP1686756B1 (en) Communication system, method and apparatus for providing mirroring service in the communication system
EP2073506A1 (en) Method for resolving a logical user address in an aggregation network
US6917619B1 (en) System and method for interconnecting ATM systems over an intermediate ATM network using switch virtual connections
JP4029930B2 (en) Relay device and connection method
JP4143479B2 (en) Communication system between subscriber terminals
JP5088492B2 (en) Relay device

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