Method and apparatus for relaying packet transmission and updating network address information in communication system
10735321 ยท 2020-08-04
Assignee
Inventors
- Bong-Jhin Shin (Suwon-si, KR)
- Jae-Eun Kang (Suwon-si, KR)
- Han-Su Kang (Seoul, KR)
- Sung-il Park (Suwon-si, KR)
- Seong-Hee Park (Seoul, KR)
- Chil-Youl Yang (Anyang-si, KR)
- Myoung-Hwan Lee (Suwon-si, KR)
- Jang-Hee Lee (Seongnam-si, KR)
- Chun-Ho Lee (Seongnam-si, KR)
- Tae-Young Lee (Seoul, KR)
Cpc classification
H04L12/4625
ELECTRICITY
H04L2101/622
ELECTRICITY
H04L61/103
ELECTRICITY
International classification
Abstract
A method to transmit and receive a packet in a bridge of a communication system is provided. The method includes receiving a first packet from a first network. The method also includes converting a medium access control (MAC) layer source address of the received first packet into a MAC address of the bridge. The method further includes transmitting the address-converted first packet to a node of a second network.
Claims
1. A method for communicating of a bridge device including a bridge in a communication network, the method comprising: identifying that the bridge is replaced; in response to identifying that the bridge is replaced: obtaining an internet protocol (IP) address of a first network node located internally to the communication network, transmitting, to the first network node, a packet indicating that the bridge is replaced by using the IP address, and broadcasting, to a second network node located externally to the communication network, a message to update information of the replaced bridge, wherein the message includes the IP address and a corresponding medium access control (MAC) address of the replaced bridge; and in response to the replaced bridge being a wireless bridge, updating a mapping table between the IP address of the first network node and the corresponding MAC address of the replaced bridge.
2. The method of claim 1, wherein the packet includes a multicast packet.
3. The method of claim 1, wherein the message is broadcasted within a predetermined number of times.
4. The method of claim 1, further comprising: in response to the replaced bridge being a wired bridge, deleting a mapping table managed before the bridge was replaced.
5. A method to update network address information in a communication system using a bridge device, the method comprising: identifying that the bridge device is replaced; in response to identifying that the bridge device is replaced: obtaining an internet protocol (IP) address by the replaced bridge device, transmitting, by the replaced bridge device, a packet indicating the replacement of the bridge device to an internal network node, and broadcasting, by the replaced bridge device, a message to update the network address information to an external network node; in response to the replaced bridge device being a wireless bridge device, updating a mapping table; and in response to the replaced bridge device being a wired bridge device, deleting the mapping table.
6. The method of claim 5, wherein table information including the network address information includes an address resolution protocol (ARP) table of the external network node.
7. The method of claim 5, wherein the packet indicating the replacement of the bridge device includes a multicast packet.
8. The method of claim 5, further comprising: deleting or updating a mapping table between the IP address and a medium access control (MAC) address by the replaced bridge device.
9. A bridge device in a communication system that uses a wired or wireless bridge, the bridge device comprising: a first network interface configured to communicate with an external network; a second network interface configured to communicate with an internal network; and at least one processor configured to: identify that the bridge device is replaced; and in response to identifying that the bridge device is replaced: control a bridge function to obtain an internet protocol (IP) address responsive to a bridge being changed, transmit a packet indicating the change in the bridge to a node of the internal network through the second network interface, and broadcast a message to update a network address information to an external network node through the first network interface, wherein: responsive to the changed bridge being a wireless bridge, a mapping table is updated, and responsive to the changed bridge being a wired bridge, the mapping table is deleted.
10. The bridge device of claim 9, wherein table information including the network address information includes an address resolution protocol (ARP) table of the external network node.
11. The bridge device of claim 9, wherein the packet indicating the change in bridge includes a multicast packet.
12. The bridge device of claim 9, wherein the at least one processor is configured to control an operation of deleting or updating a mapping table between the IP address and a MAC address.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) For a more complete understanding of the present disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which like reference numerals represent like parts:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16) Throughout the drawings, like reference numerals will be understood to refer to like parts, components, and structures.
DETAILED DESCRIPTION
(17)
(18) The terms and words used in the following description and claims are not limited to the bibliographical meanings, but, are merely used by the inventor to enable a clear and consistent understanding of the disclosure. Accordingly, it should be apparent to those skilled in the art that the following description of exemplary embodiments of the present disclosure is provided for illustration purpose only and not for the purpose of limiting the disclosure as defined by the appended claims and their equivalents.
(19) It is to be understood that the singular forms a, an, and the include plural referents unless the context clearly dictates otherwise. Thus, for example, reference to a component surface includes reference to one or more of such surfaces.
(20) By the term substantially it is meant that the recited characteristic, parameter, or value need not be achieved exactly, but that deviations or variations, including for example, tolerances, measurement error, measurement accuracy limitations and other factors known to those of skill in the art, may occur in amounts that do not preclude the effect the characteristic was intended to provide.
(21) In order for Wi-Fi/WLAN devices to be connected to the external network, a bridge device is required. The bridge device is generally connected to the AP through a wired communication interface that uses an Ethernet cable. The term bridge refers to a function of connecting different communication networks to one network, and typically, the bridge is implemented in a Layer 2 (or Medium Access Control (MAC) layer) to connect different networks.
(22)
(23) Referring to
(24)
(25) In the general communication system, a communication interface includes a physical layer, a MAC layer (for example, that includes a bridge), and a Transfer Control Protocol/Internet Protocol (TCP/IP) layer. A packet generated in a transmitter is delivered to the MAC layer and the TCP/IP layer through the physical layer. Each layer delivers only the packet required for the layer among the received packets, to the next layer. Specifically, the physical layer receives all the packets generated by the transmitter, and delivers the received packets to the MAC layer, and the MAC layer checks MAC addresses of the packets and deliver only the packet whose destination address is set as its MAC address, to the TCP/IP layer which is an upper layer.
(26) In the wired bridge device 20 as shown in
(27)
(28) A concept of an aspect of an embodiment of the present disclosure is as follows. In order for a wireless bridge to connect an internal network and an external network, the wireless bridge is made to be seen as an entity of the packet transmission, with respect to the external network.
(29) To this end, a MAC destination address or a MAC source address of a packet is converted into (or replaced by) an address of the wireless bridge. In other words, when sending a packet generated in a node of the internal network to the external network, the wireless bridge converts a MAC source address of the packet into the address of the wireless bridge. In this case, a node of the external network recognizes all MAC addresses of the internal network as the address of the wireless bridge.
(30) On the other hand, when the external network delivers a packet generated in the external network to the internal network, MAC destination addresses of the packets generated in an external network's node is set as the address of the wireless bridge, since the external network recognizes MAC addresses of all the internal network's nodes as the address of the wireless bridge. Therefore, in order to deliver the packets to the actual destination node, the MAC destination addresses that are set as the address of the wireless bridge is converted into an address of the actual destination node. To this end, the wireless bridge configures a table (such as an IP-MAC mapping table) for the mapping relationship between IP addresses and MAC addresses of the internal network's nodes. The IP-MAC mapping table is created using an Address Resolution Protocol (gARP) message that an internal network's node sends to an external network's node through the wireless bridge. Even after first configuring the IP-MAC mapping table, the wireless bridge updates the IP-MAC mapping table by receiving a gARP message. The IP-MAC mapping table is created and managed in the L2 layer, and is referenced in an operation related to the L2 layer including the bridge. An embodiment of the present disclosure will be described in detail below with reference to the accompanying drawings. An aspect of an embodiment of the present disclosure will be described below.
(31)
(32)
(33) An example operation of a wireless bridge according to this disclosure will be described below with reference to
(34) First, when a packet generated in the internal network 602 is transmitted to the external network 601 via the wireless bridge 600, a MAC source address in the Ethernet MAC header of the packet is converted into a MAC address of the wireless bridge 600. If so, the nodes 631 and 632 located in the external network 601 recognizes that all the nodes 633 and 634 located in the internal network 602 have the MAC address of the wireless bridge 600. In other words, even though the nodes 631 and 632 located in the external network 601 have received a packet from the internal network 602, since the MAC source address of the received packet is the MAC address of the wireless bridge 600, the nodes 631 and 632 located in the external network 601 recognize that the packet was transmitted from the wireless bridge 600.
(35) On the other hand, when a packet generated in the external network 601 is transmitted to the internal network 602 via the wireless bridge 600, a MAC destination address in an Ethernet header of the packet is converted from the MAC address of the wireless bridge 600 to a MAC address of an actual destination node. In the former case, when the packet generated in the internal network 602 is transmitted to the external network 601 via the wireless bridge 600, the wireless bridge 600 converts the MAC source address of the packet into the MAC address of the wireless bridge 600 as if the wireless bridge 600 generates and transmits the packet. Therefore, on the contrary, when a packet is received at the internal network 602 from the external network 601, the wireless bridge 600 converts the MAC destination address of the packet back into the MAC address of the destination node at which the packet is to be received originally. The foregoing details will be described in detail with reference to
(36)
(37)
(38) Reference numeral 800 represents the addresses of a packet, which are given when the packet is generated in the source node 631. An Ethernet MAC destination address 801 of the packet is set as the MAC address of the wireless bridge 600, and an Ethernet MAC source address 802 thereof is set as the first node 631. In addition, an IP destination address 803 is set as the fourth node 634, and an IP source address 804 is set as the first node 631. Here, it should be noted that the Ethernet MAC destination address 801 is set as the MAC address of the wireless bridge 600. Since the wireless bridge 600 converts the MAC source address of a packet delivered from the internal network 602 to the external network 601 into the address of the wireless bridge 600 as described in
(39) In order to deliver, to an actual destination node, a packet whose MAC destination address is set as the MAC address of the wireless bridge 600 as shown by reference numeral 800, the wireless bridge 600 converts the MAC destination address of the packet into a MAC address of the actual destination node for the packet. Reference numeral 810 represents the resulting address obtained by converting the MAC destination address 801 into the address 811 of the fourth node 634 which is the actual destination node. In order to convert the address of the MAC destination node into the address of the actual destination node, the wireless bridge 600 determines the actual destination node based on the IP destination addresses 803 and 813 of the packet. To this end, the wireless bridge 600 includes a mapping table between MAC addresses and IP addresses.
(40) A description will now be made of a message transmission/reception procedure among an external network node, a wireless bridge and an internal network node during operation of the wireless bridge, and an operation of the wireless bridge according to an aspect of an embodiment of the present disclosure. As described above, in an aspect of an embodiment of the present disclosure, a MAC source address in an Ethernet MAC header of the packet that is transmitted to the external network via the wireless bridge is converted into the address of the wireless bridge. On the other hand, for the packet that is transmitted from the external network to the internal network via the bridge, a MAC destination address in an Ethernet MAC header of the packet is converted into the MAC address of the actual destination node in the wireless bridge. In order to determine the MAC address of the actual destination node, the wireless bridge generates and manages an IP-MAC mapping table in its MAC layer.
(41) However, from the viewpoint of the external network, a node of the external network not determine the presence of the nodes located in the internal network at the time the internal network including the wireless bridge is created. On the other hand, if a node of the external network desire to communicate with an internal network node while knowing an IP address of the internal network node, the external network node should obtain an MAC address of the internal network node.
(42)
(43) In operation 919, if the external network node 901 desires to transmit an arbitrary packet to the internal network node 902, the external network node 901 sets a MAC destination address of the packet as a MAC address of the wireless bridge 900 and transmit the packet to the wireless bridge 900. In operation 921, the wireless bridge 900 converts the MAC destination address of the received packet into the actual destination address (such as the MAC address of the internal network node 902) using the IP-MAC mapping table. In operation 923, the wireless bridge 900 transmits the packet whose MAC destination address is converted, to the actual destination node.
(44) An aspect of an embodiment of the present disclosure has been described so far. If a wireless bridge is configured according to an aspect of an embodiment of the present disclosure, an external network transmits or receives a packet using a MAC address of the wireless bridge, so the external network transmits or receives a packet even though the external network does not know a MAC address of an internal network node. In order to connect the network consisting of the existing WLAN devices to an external network, a separate device having a wired communication interface is required in addition to the WLAN devices. If a wireless bridge device according to an aspect of an embodiment of the present disclosure is used, one of the devices constituting the WLAN is used as a wireless bridge, contributing to the improvement of the convenience during configuration of the network.
(45) Although the foregoing description has been made based on the Wi-Fi/WLAN communication system, it will be apparent to those of ordinary skill in the art that an embodiment of the present disclosure is not limited thereto, and is extended to any system for connecting a first communication network and a second communication network to replay a packet. Another aspect of an embodiment of the present disclosure will now be described. As to the main concept of another aspect of an embodiment of the present disclosure, if a wired or wireless bridge device is replaced, the replaced bridge device obtains an IP address of internal network nodes, notify the internal network nodes of the change in the bridge, and broadcast a message for updating network address information to an external network node, allowing the external network node to update the network address information.
(46)
(47) If the bridge device 100 in
(48) Further, in
(49)
(50) In operation 1101, upon obtaining an IP address, the bridge device 100 transmits a multicast packet to the internal network 1003 to notify the change in the bridge device 100. Further, in order to update the ARP table of the external network 1001, the bridge device 100 broadcasts a message (such as a gARP message) to the external network 1001 within a predetermined number of times. In operation 1103, a gARP request message or a gARP response message is used as the gARP message. As the gARP message, a request or response message is used, which is specified in an ARP that is a protocol used to convert an IP address into a unique MAC address of a network device.
(51) Upon receiving the multicast packet from the bridge device 100, the third and fourth nodes 1003-1 and 1003-2 of the internal network 1003 broadcast a gARP message to the internal network 1003 within a predetermined number of times for update of the ARP table of the external network 1001, recognizing the change in the bridge device 100. In operations 1105 and 1107, a gARP request message or a gARP response message is used as the gARP message as described above.
(52) Upon receiving the gARP message broadcasted from the internal network 1003, the first and second nodes 1001-1 and 1001-2 of the external network 1001 update the MAC address included in their own ARP table and Forwarding Data Base (FDB) table as a new MAC address. Here, the FDB table means a table for mapping a MAC address and a communication port of a destination node.
(53)
(54) In operation 1211, upon receiving the multicast packet, the internal network node 50 broadcasts a gARP message to the external network node 60 within a predetermined number of times to update the ARP table of the external network node 60, recognizing the change in the bridge device 100. In operation 1213, upon receiving the gARP message broadcasted by the internal network node 50, the bridge device 100 generates and updates a mapping table between an IP address and a MAC address. In operation 1215, upon receiving the gARP message broadcasted by the internal network node 50, the external network node 60 updates a MAC address included in its own ARP table and FDB table as a new MAC address.
(55)
(56) In operation 1313, upon receiving the multicast packet, the internal network node 50 broadcasts a gARP message to the external network node 60 within a predetermined number of times to update the ARP table of the external network node 60, recognizing the change in the bridge device 100. In operation 1315, upon receiving the gARP message broadcasted by the internal network node 50, the external network node 60 updates a MAC address included in its own ARP table and FDB table as a new MAC address. In accordance with another aspect of an embodiment of the present disclosure, if a wired or wireless bridge is replaced in a network Layer 2 (such as if a wireless bridge device using a Wi-Fi/WLAN interface is replaced by a wired bridge device using an Ethernet interface), other nodes in the network quickly update the ARP table, making it possible to reduce the delay time that the data exchange is possible after the bridge replacement.
(57)
(58) The transceiver 1401 receives all the packets transmitted from one of the two networks 601 and 602, and delivers the received packets to the controller 1403. The controller 1403 forwards the packets to another network through the transceiver 1401. The address manager 1405 controls the MAC addresses of the packets to be forwarded, according to an aspect of an embodiment of the present disclosure. In other words, the address manager 1405 converts one of the MAC addresses of the packets into the MAC address of the wireless bridge.
(59) First, if a packet generated in the internal network 602 is transmitted to the external network 601 through the bridge device 1400, the address manager 1405 converts a MAC source address in the Ethernet MAC header of the packet into the address of the bridge device 1400. On the other hand, if a packet generated in the external network 601 is transmitted to the internal network 602 through the bridge device 1400, the address manager 1405 converts a MAC destination address in the Ethernet MAC header of the packet into the MAC address of an actual destination node in the bridge device 1400. To this end, the address manager 1405 configures a table (such as an IP-MAC mapping table) for the mapping relationship between IP addresses and MAC addresses of the internal network nodes. The IP-MAC mapping table is created using a gARP message that an internal network node sends to an external network node through the wireless bridge 1400. Even after first configuring the IP-MAC mapping table, the address manager 1405 updates the IP-MAC mapping table by receiving a gARP message. The IP-MAC mapping table is created and managed in the L2 layer, and is referenced in an operation related to the L2 layer including the bridge.
(60) Next, an operation according to another aspect of an embodiment of the present disclosure will be described. In this case, the bridge device 1400 is a wired bridge or a wireless bridge. Upon occurrence of a change between the wired or wireless bridges, the transceiver 1401 obtains an IP address through the first network interface 1011 to communicate with the external device 1001 and the second network interface 1013 to communicate with the internal network 1003. The obtained IP address is managed and stored in the address manager 1405. The controller 1403 controls a bridge function of transmitting a packet indicating the change in the bridge to a node of the internal network 1003 through the second network interface 1013, and broadcasting a message to update network address information including the ARP table to a node of the external network 1001 through the first network interface 1011. In terms of hierarchy, the controller 1403 corresponds to the MAC layer interface 1015. For reference, table information including the network address information is updated in the node of the external network 1001 that have received the message. This has been described in
(61) Although the present disclosure has been described with an exemplary embodiment, various changes and modifications may be suggested to one skilled in the art. It is intended that the present disclosure encompass such changes and modifications as fall within the scope of the appended claims.