How Packet Switching Works
Let us first, in contrast, say briefly what circuit switching is. It is a type of switching that opens a connection and keeps it constant, with the circuit pre-defined (before the connection is made). The connection is closed only when the last bit of data for a session is sent. An example of circuit switching technology is a simple telephone system.
Packet switching, in turn, opens the connection just long enough to send a small chunk of data, called a packet, from one system to another. What happens is this: The sending computer chops data into these small packets, with an address on each one telling the network where to send them. When the receiving computer gets the packets, it reassembles them into the original data.
Packet switching is very efficient. It minimizes the time that a connection is maintained between two systems, which reduces the load on the network. It also frees up the two computers communicating with each other so that they can accept information from other computers as well.
VoIP technology uses this packet-switching method to provide several advantages over circuit switching. For example, packet switching allows several telephone calls to occupy the amount of space occupied by only one in a circuit-switched network. Using PSTN, that 10-minute phone call consumed 10 full minutes of transmission time at a cost of 128 Kbps. With VoIP, that same call may have occupied only 3.5 minutes of transmission time at a cost of 64 Kbps, leaving another 64 Kbps free for that 3.5 minutes, plus an additional 128 Kbps for the remaining 6.5 minutes. Based on this simple estimate, another three or four calls could easily fit into the space used by a single call under the conventional system. And this example doesn't even factor in the use of data compression, which further reduces the size of each call.
Let's say that your company had equipment installed and a contract set up so that you can use VoIP. You have installed about a dozen telephones and a digital private branch exchange (PBX) in your office. A PBX is essentially a switch used to connect a number of phones (extensions) to each other and to one or more outside phone lines. In our example, the PBX is also a gateway.
Gateways are used to connect devices on two different types of networks so that they can communicate with each other. Our PBX is a gateway because it converts the standard circuit-switched signal from each phone into digital data that can be sent over a packet-switched, IP-based network. IP stands for Internet protocol, the language used by most data networks. Let's take another look at that typical telephone call, but this time using VoIP over a packet-switched network:
1. You pick up the receiver, which sends a signal to the PBX.
2. The PBX receives the signal and sends a dial tone. This lets you know that you have a connection to the PBX.
3. You dial the number of the party you wish to talk to. This number is then temporarily stored by the PBX.
4. Once you have entered the number, the PBX checks it to ensure that it is in a valid format.
5. The PBX determines whom to map the number to. In mapping, the number is attached to the IP address of another device called the IP host. The IP host is typically another digital PBX that is connected directly to the phone system of the number you dialed. In some cases, particularly if the party you are calling is using a computer-based VoIP client, the IP host is the system you wish to connect with.
6. A session is established between your company's PBX and the other party's IP host. This means that each system knows to expect packets of data from the other system. Each system must use the same protocol to communicate. The systems will implement two channels, one for each direction, as part of the session.
7. You talk for a period of time. During the conversation, your company's PBX and the other party's IP host transmit packets back and forth when there is data to be sent. The PBX at your end keeps the circuit open between itself and your phone extension while it forwards packets to and from the IP host at the other end.
8. You finish talking and hang up the receiver.
9. When you hang up, the circuit is closed between your phone and the PBX, freeing your line.
10. The PBX sends a signal to the IP host of the party you called that it is terminating the session. The IP host terminates the session at its end, too.
11. Once the session is terminated, the PBX removes the number-to-IP-host mapping from memory.
Probably one of the most compelling advantages of packet switching is that data networks already understand the technology. By migrating to this technology, telephone networks immediately gain the ability to communicate the way computers do. Of course, having the ability to communicate and understanding the methods of communication are two very different things. For telephones to communicate with each other and with other devices, such as computers, over a data network, they need to speak a common language called a protocol.
Packet switching, in turn, opens the connection just long enough to send a small chunk of data, called a packet, from one system to another. What happens is this: The sending computer chops data into these small packets, with an address on each one telling the network where to send them. When the receiving computer gets the packets, it reassembles them into the original data.
Packet switching is very efficient. It minimizes the time that a connection is maintained between two systems, which reduces the load on the network. It also frees up the two computers communicating with each other so that they can accept information from other computers as well.
VoIP technology uses this packet-switching method to provide several advantages over circuit switching. For example, packet switching allows several telephone calls to occupy the amount of space occupied by only one in a circuit-switched network. Using PSTN, that 10-minute phone call consumed 10 full minutes of transmission time at a cost of 128 Kbps. With VoIP, that same call may have occupied only 3.5 minutes of transmission time at a cost of 64 Kbps, leaving another 64 Kbps free for that 3.5 minutes, plus an additional 128 Kbps for the remaining 6.5 minutes. Based on this simple estimate, another three or four calls could easily fit into the space used by a single call under the conventional system. And this example doesn't even factor in the use of data compression, which further reduces the size of each call.
Let's say that your company had equipment installed and a contract set up so that you can use VoIP. You have installed about a dozen telephones and a digital private branch exchange (PBX) in your office. A PBX is essentially a switch used to connect a number of phones (extensions) to each other and to one or more outside phone lines. In our example, the PBX is also a gateway.
Gateways are used to connect devices on two different types of networks so that they can communicate with each other. Our PBX is a gateway because it converts the standard circuit-switched signal from each phone into digital data that can be sent over a packet-switched, IP-based network. IP stands for Internet protocol, the language used by most data networks. Let's take another look at that typical telephone call, but this time using VoIP over a packet-switched network:
1. You pick up the receiver, which sends a signal to the PBX.
2. The PBX receives the signal and sends a dial tone. This lets you know that you have a connection to the PBX.
3. You dial the number of the party you wish to talk to. This number is then temporarily stored by the PBX.
4. Once you have entered the number, the PBX checks it to ensure that it is in a valid format.
5. The PBX determines whom to map the number to. In mapping, the number is attached to the IP address of another device called the IP host. The IP host is typically another digital PBX that is connected directly to the phone system of the number you dialed. In some cases, particularly if the party you are calling is using a computer-based VoIP client, the IP host is the system you wish to connect with.
6. A session is established between your company's PBX and the other party's IP host. This means that each system knows to expect packets of data from the other system. Each system must use the same protocol to communicate. The systems will implement two channels, one for each direction, as part of the session.
7. You talk for a period of time. During the conversation, your company's PBX and the other party's IP host transmit packets back and forth when there is data to be sent. The PBX at your end keeps the circuit open between itself and your phone extension while it forwards packets to and from the IP host at the other end.
8. You finish talking and hang up the receiver.
9. When you hang up, the circuit is closed between your phone and the PBX, freeing your line.
10. The PBX sends a signal to the IP host of the party you called that it is terminating the session. The IP host terminates the session at its end, too.
11. Once the session is terminated, the PBX removes the number-to-IP-host mapping from memory.
Probably one of the most compelling advantages of packet switching is that data networks already understand the technology. By migrating to this technology, telephone networks immediately gain the ability to communicate the way computers do. Of course, having the ability to communicate and understanding the methods of communication are two very different things. For telephones to communicate with each other and with other devices, such as computers, over a data network, they need to speak a common language called a protocol.


