Home Common Problem What is a gateway

What is a gateway

Feb 23, 2023 pm 02:00 PM
gateway

A gateway, also known as an Internet connector or a protocol converter, is a computer system or device that plays the important role of conversion; the gateway implements network interconnection above the network layer and is a complex network interconnection device that only uses For network interconnection with two different high-level protocols; the gateway can be used for both WAN interconnection and LAN interconnection.

What is a gateway

#The operating environment of this tutorial: Windows 10 system, Dell G3 computer.

What is a gateway?

Gateway is also called an Internet connector and a protocol converter. The gateway implements network interconnection above the network layer. It is a complex network interconnection device and is only used for network interconnection between two high-level protocols with different protocols. Gateways can be used for both WAN interconnection and LAN interconnection. A gateway is a computer system or device that does the heavy lifting. Used between two systems with different communication protocols, data formats or languages, or even completely different architectures, a gateway is a translator. Unlike bridges that simply convey information, gateways repackage received information to suit the needs of the destination system. Same layer - application layer.

Concept

What is a gateway

Gateway

Everyone knows that walking from one room to another must be done Go through a door. Similarly, sending information from one network to another must pass through a "gateway", which is the gateway. As the name suggests, Gateway [1] is the "gateway" that connects one network to another. That is the network level.

Gateway is also called an Internet connector and a protocol converter. The default gateway implements network interconnection above the network layer and is the most complex network interconnection device. It is only used for network interconnection between two high-level protocols with different protocols. The structure of a gateway is similar to that of a router, except for the interconnection layer. Gateways can be used for both WAN interconnection and LAN interconnection.

[Note: Due to historical reasons, many literatures about TCP/IP once referred to the routers used in the network layer as gateways. Today, many LANs use routing to access the network, so they usually refer to gateways. It is the IP of the router]

In OSI, there are two types of gateways: one is a connection-oriented gateway, and the other is a connectionless gateway. When there is a certain distance between two subnets, a gateway is often divided into two halves and connected with a link in the middle. We call it a half gateway.

There are many types of gateways according to different classification standards. The gateway in the TCP/IP protocol is the most commonly used. The "gateway" we talk about here refers to the gateway under the TCP/IP protocol.

So what exactly is a gateway? A gateway is essentially the IP address from one network to another. For example, there are network A and network B. The IP address range of network A is "192.168.1.1~192. 168.1.254" and the subnet mask is 255.255.255.0; the IP address range of network B is "192.168.2.1~192.168. 2.254", the subnet mask is 255.255.255.0. In the absence of a router, TCP/IP communication is not possible between the two networks. Even if the two networks are connected to the same switch (or hub), the TCP/IP protocol will communicate based on the subnet mask (255.255 .255.0) and the IP address of the host. If the results of the AND operation are different, it is determined that the hosts in the two networks are in different networks. To achieve communication between these two networks, it must pass through a gateway. If the host in network A finds that the destination host of the data packet is not in the local network, it forwards the data packet to its own gateway, which then forwards it to the gateway of network B, and the gateway of network B forwards it to someone in network B. host. This is the process of network A forwarding data packets to network B.

So, only by setting the IP address of the gateway, the TCP/IP protocol can realize mutual communication between different networks. So which machine's IP address is this IP address? The IP address of the gateway is the IP address of a device with routing functions. Devices with routing functions include routers, servers with routing protocols enabled (essentially equivalent to a router), and proxy servers (also equivalent to a router).

In the context of interoperating with Novell NetWare networks, the gateway acts as a bridge between the Server Message Block (SMB) protocol used in Windows networks and the NetWare Core Protocol (NCP) used in NetWare networks. Gateways are also known as IP routers.

Example

Suppose your name is Xiao Doian (very small, here you are a url address, pointing to a certain web resource), and you live in a big yard Here, you have many friends in your neighborhood, and your parents are your gateways. When you want to play with a friend in the yard, just shout his name in the yard and he will listen. It will respond to you when it arrives and run out to play with you.

But your parents don't allow you to go out of the door. Any contact you want to have with the outside world must be done by your parents (gateway) by phone. Suppose you want to chat with your classmate Xiao Ming. Xiao Ming’s family lives in another yard far away, and he also has parents at home (Xiao Ming’s gateway). But you don’t know Xiao Ming’s home phone number, but your class teacher has a list of all the students in your class and a phone number comparison table. Your teacher is your DNS server. So you have the following conversation with your parents at home:

Little one: Mom (or dad), I would like to ask the class teacher to check Xiao Ming’s phone number, okay? Parent: OK, you wait. (Then your parents called your class teacher and asked for Xiao Ming’s phone number.) When asked, his home number is 211.99.99.99

Little boy: Great! Mom (or Dad), I want to find Xiao Ming. Please help me contact Xiao Ming.

Parents: No problem. (Then the parents sent a request to the telephone company to connect Xiao Ming’s phone. The last step was of course to be transferred to Xiao Ming’s parents, and then his parents transferred the call to Xiao Ming).

That’s it. You got in touch with Xiao Ming.

If you understand what a gateway is, the default gateway will be easier to understand. Just like a room can have multiple doors, a host can have multiple gateways. The default gateway means that if a host cannot find an available gateway, it will send the data packet to the default designated gateway, and this gateway will process the data packet. Default gateway. The default gateway is generally filled in with 192.168.x.1

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What is a gateway. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Why can't I ping the gateway? Why can't ping? Why can't I ping the gateway? Why can't ping? Mar 13, 2024 pm 03:40 PM

The network cannot ping, what's going on? In fact, this is a very common problem. It is mainly divided into two situations: pinging fails on the same network segment and pinging fails on different network segments. Let’s take a look at the details below. There are usually two reasons why the ping command cannot connect to the same network segment: one is an IP address that cannot be pinged in the same network segment, and the other is an IP address that cannot be pinged in a different network segment. These two situations have different solutions. First, let’s discuss the situation where ping fails within the same network segment. 1. Ping fails on the same network segment, and the result is "Unable to access the target host." The destination IP and source IP are on the same network segment, and the ping result is &l

Which one is faster, gateway or router? Which one is faster, gateway or router? Jun 19, 2023 pm 03:06 PM

The difference between gateway WiFi and router WiFi is mainly reflected in three aspects: function, number of terminals that support Internet access, and WiFi signal coverage. Gateway WiFi is a combination of optical modem and router. It has more functions, but it supports fewer Internet devices and the WiFi signal coverage is not as good as router WiFi.

What is the method to modify the default gateway of Linux system? What is the method to modify the default gateway of Linux system? Jan 08, 2024 pm 02:14 PM

The default gateway is the IP address of the router. Generally speaking, the operating system automatically detects the gateway during the installation of the router, but you may also need to change it manually. Especially when there are multiple network adapters or routers in the network, it is often necessary to manually add or change the gateway. How to modify it? Let’s take a look at the detailed tutorial below. 1. Using the terminal 1. Open the terminal. You can open the Terminal program from the sidebar or press Ctrl+Alt+T to open it. 2. Browse the current default gateway information. You can enter route and press Enter to view the current default gateway settings. The address next to "Default" displays the current default gateway address, and the interface it is assigned to is displayed on the right side of the desktop.

How to set up the gateway How to set up the gateway Jan 05, 2024 pm 01:56 PM

The general steps to set up a gateway are: 1. First determine the IP address and subnet mask of the device to be set; 2. Open the network settings or network configuration page of the device; 3. On the network settings or network configuration page, find the gateway setting option ; 4. Enter the IP address of the gateway to be set; 5. Save the settings and restart the device.

What does Bluetooth mesh gateway mean? What does Bluetooth mesh gateway mean? Jan 31, 2024 pm 12:36 PM

I believe everyone has heard of Bluetooth mesh gateway, but many people don’t know what Bluetooth mesh gateway means. In fact, it is very simple. Bluetooth mesh gateway means that the gateway uses the Bluetooth mesh protocol. What does Bluetooth mesh gateway mean? Answer: The gateway uses the Bluetooth mesh protocol. The built-in Bluetooth mesh gateway can make the home environment more comfortable. Details of Bluetooth mesh gateway 1. Bluetooth mesh gateway has low power consumption and can be used in various environments on a larger scale. 2. The operation is more convenient. Users will find it easier to use. 3. Every smart home hardware in the Bluetooth mesh gateway can be connected to Xianhu, and it is very convenient to operate. 4. The network nodes are very stable, so the network management will be very fixed.

At which layer does the gateway work? At which layer does the gateway work? Aug 15, 2023 am 10:01 AM

The gateway works on the third layer "network layer" and the seventh layer "application layer": 1. The network layer gateway, called a router, is responsible for transmitting data packets between different networks and forwarding and routing according to the destination IP address. Decision-making; 2. Application layer gateway, called proxy gateway or application gateway, provides conversion and processing functions of application layer protocols, allowing communication between different types of applications.

What does the default gateway unavailable mean? What does the default gateway unavailable mean? Feb 22, 2024 pm 09:27 PM

What does it mean that the default gateway is unavailable? The default gateway is an important concept in the network. It is the egress that connects the local network to other networks and acts as a transfer station for data packets to be sent from the local network to the target network. When we use a network device to connect to the Internet, we usually configure a default gateway. However, sometimes we may encounter the "default gateway unavailable" problem, which prevents us from accessing the Internet properly. So, what does it mean that the default gateway is unavailable, and how to solve this problem? Default gateway unavailable refers to the computer or its

What's the problem with not being able to connect to the gateway? What's the problem with not being able to connect to the gateway? Jun 28, 2023 pm 01:13 PM

Reasons for being unable to connect to the gateway: 1. Physical connection problem, you can check whether the cable is plugged in and make sure the connection is firm; 2. IP address conflict, which can be solved by setting the device's IP address to dynamic acquisition or manually changing the device's IP address; 3. For router problems, you can try to restart the router, update the firmware or reset the router to factory settings; 4. For firewall settings, check the firewall settings and ensure that the required network connections are allowed to pass; 5. For DNS problems, try to manually change the DNS settings Or using a public DNS server may help solve the problem.