CN113452616A - Three-four address router and method and device for managing down-hanging equipment thereof - Google Patents

Three-four address router and method and device for managing down-hanging equipment thereof Download PDF

Info

Publication number
CN113452616A
CN113452616A CN202110788995.2A CN202110788995A CN113452616A CN 113452616 A CN113452616 A CN 113452616A CN 202110788995 A CN202110788995 A CN 202110788995A CN 113452616 A CN113452616 A CN 113452616A
Authority
CN
China
Prior art keywords
address
mac
protocol message
router
configuration protocol
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
CN202110788995.2A
Other languages
Chinese (zh)
Other versions
CN113452616B (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202110788995.2A priority Critical patent/CN113452616B/en
Publication of CN113452616A publication Critical patent/CN113452616A/en
Application granted granted Critical
Publication of CN113452616B publication Critical patent/CN113452616B/en
Priority to PCT/CN2022/098585 priority patent/WO2023284467A1/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
    • 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]

Landscapes

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

Abstract

The invention relates to the technical field of broadband terminal equipment networking, and provides a three-four address router and a method and a device for managing an under-hanging device thereof. The method comprises the steps of configuring a plurality of items in a protocol message, a network address table, an MAC table and a network bridge address table, acquiring the configuration protocol message, and matching different MAC addresses in the network address table according to an IP address of the configuration protocol message if the same MAC address is not matched in the network bridge address table according to the configuration protocol message; if different MAC addresses are matched in a network address table according to the IP address of the configuration protocol message, updating the MAC address in the configuration protocol message to a row record corresponding to the different MAC addresses matched in the network address table; and if different MAC addresses matched in the network address table according to the IP address of the configuration protocol message are matched with the same MAC address in the MAC table, acquiring an access port corresponding to the same MAC address matched in the MAC table so as to identify the equipment.

Description

Three-four address router and method and device for managing down-hanging equipment thereof
[ technical field ] A method for producing a semiconductor device
The invention relates to the technical field of broadband terminal equipment networking, in particular to a three-four address router and a method and a device for managing an under-hanging device thereof.
[ background of the invention ]
According to the traditional scene, a main gateway/main route directly hangs down devices such as a mobile phone, a computer and a set top box, the devices use physical addresses when acquiring IP addresses, information interaction captured by a wireless module, a protocol module and a driving module uniquely identifies one device by the physical addresses, and a management module can manage the devices in a unified mode.
With the occurrence of networking requirements, routers serve as network nodes, and by using a Wireless Distribution System (WDS) technology, the traditional wired network can be abandoned among the routers for interconnection, so that a complete networking scene is formed with a main gateway, and the main gateway needs to manage all devices including the routers and the devices under the routers. For the implementation of WDS, there is no explicit provision in the protocol, but in the header of the wireless data frame, an address location is reserved. Therefore, all wireless data frames have four address fields, only the first three fields are used, which is called three addresses, and the four fields are called four addresses, and currently, three addresses or four addresses are used in the industry as wireless link data frame encapsulation modes. Three data necessary for wireless data Transmission are DA (Destination Address), SA (Source Address), BSSID (Basic Service Set Identifier), and the three addresses only use the first three fields to store information, so that a physical Address cannot be stored, while DA, SA, RA (Receiver Address) and TA (Transmission Address) can be stored simultaneously by adopting a four-Address wireless link data frame encapsulation method.
Assume a networking environment as follows: the main gateway, the sub-router and the down-hanging device are connected in series, and the three/four addresses are target addresses stored in DA during communication.
For a three address router (i.e., a child router): the message sent by the drop device originally stores the physical address of the drop device in the SA, the BSSID stores the wireless address of the three-address router, but after the message passes through the three-address router, the SA is changed into the wireless address of the three-address router, and the BSSID stores the wireless address of the main gateway, so that the loss of the physical address of the drop device is caused. The MAC message received by the main gateway is carried as a wireless address of the sub-router and an access port of the sub-router, the address resolution protocol message interaction message carries the wireless address of the sub-router and an IP address acquired by the sub-router or the lower hanging device thereof, the configuration protocol message is not influenced by a networking mode, and the interaction message carries the physical address of the router or the lower hanging device thereof and the IP address acquired by the router or the lower hanging device thereof.
For a four address router (i.e., a child router); the message sent by the drop device stores the physical address of the drop device in the SA, the BSSID stores the wireless address of the four-address router, after the message passes through the four-address router, the SA is kept unchanged, the RA stores the wireless address of the four-address router, the TA stores the wireless address of the main gateway, and the physical address of the drop device is not lost. The MAC message received by the main gateway is carried as a wireless address of the sub-router and an access port of the sub-router, the ARP message interaction message carries a physical address of the sub-router or the equipment hung below the sub-router and an IP address acquired by the sub-router or the equipment hung below the sub-router, the configuration protocol message is not influenced by a networking mode, and the interaction message carries a physical address of the router or the equipment hung below the router and an IP address acquired by the router or the equipment hung below the router.
In view of the above, overcoming the drawbacks of the prior art is an urgent problem in the art.
[ summary of the invention ]
The technical problem to be solved by the invention is as follows:
management of the three-four address router and the hanging-down equipment thereof is realized, only MAC addresses (wherein the MAC addresses comprise physical addresses and wireless addresses) are used as unique identifiers, and the same sub-router and the hanging-down equipment thereof cannot be identified due to inconsistency of MAC addresses carried in MAC messages (carrying wireless addresses), address resolution protocol messages (the three address router carries wireless addresses and the four address router carries physical addresses) and configuration protocol messages (carrying physical addresses). In the prior art, if the management of the sub-router and the off-hook device thereof is to be realized, a new private protocol needs to be added for communication between the main gateway and the sub-router and the off-hook device thereof, the use scene is limited, and the management of the networking router and the off-hook device thereof of different manufacturers cannot be realized.
The invention achieves the above purpose by the following technical scheme:
in a first aspect, the present invention provides a three-four address router and a method for managing an off-hook device thereof, including configuring a plurality of items in a protocol message, a network address table, a MAC table and a bridge address table, wherein the protocol message includes a MAC address and an IP address;
acquiring a configuration protocol message, and if the same MAC address is not matched in a network bridge address table according to the configuration protocol message, matching different MAC addresses in a network address table according to the IP address of the configuration protocol message;
if different MAC addresses are matched in a network address table according to the IP address of the configuration protocol message, updating the MAC address in the configuration protocol message to a row record corresponding to the different MAC addresses matched in the network address table;
and if different MAC addresses matched in the network address table according to the IP address of the configuration protocol message are matched with the same MAC address in the MAC table, acquiring an access port corresponding to the same MAC address matched in the MAC table so as to identify the equipment.
Preferably, if the same MAC address is matched in the bridge address table according to the configuration protocol message, the method specifically includes:
the bridge address table includes MAC addresses and access ports;
matching the MAC address in the network bridge address table according to the MAC address in the configuration protocol message;
and if the same MAC address is matched in the bridge address table according to the MAC address of the configuration protocol message, acquiring an access port in the row record corresponding to the MAC address in the matched bridge address table so as to identify the equipment.
Preferably, the matching different MAC addresses in the network address table according to the IP address of the configuration protocol message specifically includes:
judging whether a current network address table contains a row record which is the same as the IP address of the configuration protocol message or not according to the IP address of the configuration protocol message;
if the current network address table contains the row record which is the same as the IP address of the configuration protocol message, judging whether the MAC address of the configuration protocol message is the same as the MAC address corresponding to the row record which is the same as the IP address of the configuration protocol message in the network address table;
if not, matching different MAC addresses in a network address table according to the IP address of the configuration protocol message.
Preferably, if it is determined that the current network address table does not contain the row record that is the same as the IP address of the configuration protocol message, the configuration protocol message is stored in the current network address table.
Preferably, the system further comprises an address resolution protocol message, wherein the address resolution protocol message comprises a MAC address and an IP address;
acquiring an address resolution protocol message;
judging whether a current network address table contains a row record which is the same as the IP address of the address resolution protocol message or not according to the IP address of the address resolution protocol message;
if the current network address table contains the row record which is the same as the IP address of the address resolution protocol message, judging whether the MAC address of the address resolution protocol message is the same as the MAC address corresponding to the row record which is the same as the IP address of the address resolution protocol message in the network address table;
if not, updating the MAC address in the address resolution protocol message to a row record corresponding to different matched MAC addresses in a network address table;
and if the same MAC address is matched in the MAC table according to the MAC address of the address resolution protocol message, acquiring an access port corresponding to the same MAC address matched in the MAC table so as to identify the equipment.
Preferably, if the MAC address according to the arp message is not matched with the same MAC address in the MAC table, the MAC table is waited to be updated.
Preferably, if it is determined that the current network address table does not contain the row record that is the same as the IP address of the arp message, the arp message is stored in the current network address table.
Preferably, the method further comprises a MAC message, wherein the MAC message comprises a MAC address and an access port:
acquiring MAC information, and updating the MAC information into an MAC table;
judging whether a current network address table contains a row record which is the same as the MAC address of the MAC message or not according to the MAC address of the MAC message;
if the current network address table contains the row record which is the same as the MAC address of the MAC message, judging whether the row record which is the same as the MAC address of the MAC message in the current network address table contains the MAC address which is different from the MAC address of the MAC message, and if so, identifying the equipment.
Preferably, if the different MAC addresses matched in the network address table according to the IP address of the configuration protocol message are not matched in the MAC table to the same MAC address, the update of the MAC table is waited.
In a second aspect, the present invention further provides a three-four address router and a device for managing its off-hook device, including at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions programmed to perform the method of managing a triple-quad address router and its on-hook device of the first aspect.
Compared with the prior art, the invention has the beneficial effects that:
the invention does not add a private protocol in the broadband terminal equipment, and matches unique identification information formed by the physical address, the IP address, the access port and the like of the corresponding equipment (namely the sub-router or the down-hanging equipment of the sub-router) in the networking equipment through comprehensive analysis of a network address table, a network bridge address table and an MAC table, thereby carrying out unique identification on the equipment. The invention does not need to add a new private protocol for enabling the main gateway to uniquely identify the sub-router or the drop-off equipment of the sub-router, has flexible use scene and realizes the management of the drop-off equipment of the sub-router or the sub-router in the networking of different manufacturers.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings described below are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic diagram of a framework of a three-four address router and an off-hook device management system thereof according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a management method of a three-address router or a drop device of a three-address router in a management method of a three-four-address router and a drop device thereof according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a four-address router or a method for managing a drop device of a four-address router in a management method for a three-four address router and a drop device thereof according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for managing a triple-address router and a triple-address router connected to a lower-level device according to an embodiment of the present invention;
fig. 5 is a flowchart of a method for managing a triple-address router and a triple-address router connected to a lower-level device according to an embodiment of the present invention;
fig. 6 is a flowchart of a three-four address router and a method for managing an off-hook device thereof according to an embodiment of the present invention;
fig. 7 is a flowchart of a method for managing a triple-address router and a triple-address router connected to a lower-level device according to an embodiment of the present invention;
fig. 8 is a flowchart of a method for managing a triple-address router and a triple-address router connected to a lower-level device according to an embodiment of the present invention;
fig. 9 is a schematic process diagram of a three-address router and a method for managing an off-hook device thereof according to an embodiment of the present invention;
fig. 10 is a schematic process diagram of a three-address router and a method for managing an off-hook device thereof according to an embodiment of the present invention;
fig. 11 is a schematic process diagram of a three-address router and a method for managing an off-hook device thereof according to an embodiment of the present invention;
fig. 12 is a schematic process diagram of a four-address router and a method for managing an off-hook device thereof according to an embodiment of the present invention;
fig. 13 is a schematic process diagram of a four-address router and a method for managing an off-hook device thereof according to an embodiment of the present invention;
fig. 14 is a schematic process diagram of a four-address router and a method for managing an off-hook device thereof according to an embodiment of the present invention;
fig. 15 is a schematic networking diagram of a three-four address router and its downstream device according to an embodiment of the present invention;
fig. 16 is a structural diagram of a three-four address router and an off-hook device management apparatus thereof according to an embodiment of the present invention.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the description of the present invention, the terms "inner", "outer", "longitudinal", "lateral", "upper", "lower", "top", "bottom", and the like indicate orientations or positional relationships based on those shown in the drawings, and are for convenience only to describe the present invention without requiring the present invention to be necessarily constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Example 1:
embodiment 1 of the present invention provides a three-four address router and a system for managing an off-hook device thereof, where the system includes a main gateway, a sub-router, and an off-hook device of the sub-router, and as shown in fig. 1, the main gateway includes a management module, an event alarm module, a wireless module, a protocol module, and a driver module.
A wireless module: when a sub-router (a drop device without the sub-router, because an actual access point of the drop device of the sub-router is the sub-router and not a main gateway, the main gateway cannot receive a MAC message when the drop device of the sub-router accesses the sub-router) accesses the main gateway, a wireless module of the main gateway can acquire a MAC address (where the MAC address is a wireless address) of the sub-router and an access port where the sub-router accesses the main gateway, and report the MAC address of the sub-router and the access port where the sub-router accesses the main gateway to an event alarm module, and the event alarm module uniformly packages information and reports the information to a management module in the form of a MAC message, that is, the MAC message includes the wireless address of the sub-router and the access port where the sub-router accesses the main gateway.
A protocol module: when the sub-router or the drop device of the sub-router accesses the system and then acquires the dynamic IP address, the protocol module may acquire the MAC address (where the MAC address is a physical address) and the IP address of the sub-router or the drop device of the sub-router, and report the MAC address and the IP address of the sub-router or the drop device of the sub-router to the event warning module, and the event warning module packages information in a unified manner and reports the information to the management module in a form of a configuration protocol message, that is, the configuration protocol message includes the physical address and the IP address of the sub-router or the drop device of the sub-router.
A driving module: when data interaction is generated after the sub-router or the drop device of the sub-router is accessed, for the three-address router, the driving module can acquire the MAC address (where the MAC address is a wireless address) and the IP address of the sub-router or the drop device of the sub-router, where the wireless addresses of the sub-router or the drop device of the sub-router are the same (the sub-router itself has two addresses, one is a physical address and one is a wireless address, both of which are MAC addresses, when the sub-router itself interacts with the main gateway, the wireless address is used, after an interaction message with the main gateway sent by the drop device of the sub-router passes through the sub-router, the physical address of the drop device of the sub-router is uniformly converted into the wireless address of the sub-router by the sub-router, so that the wireless address of the sub-router is used when the drop device of the sub-router or the sub-router interacts with the main gateway information, in this embodiment, the wireless address of the drop device of the sub-router is the wireless address of the sub-router), the driving module reports the wireless address and the IP address of the sub-router or the drop device of the sub-router to the event alarm module, the event alarm module packages the information in a unified manner and reports the information to the management module in the form of an address resolution protocol message, that is, for the three-address router, the address resolution protocol message includes the wireless address and the IP address of the drop device of the sub-router or the sub-router, and when the sub-router accesses the system, the driving module generates a bridge address table including the wireless address of the sub-router and the access port of the sub-router accessing the main gateway (for the three-address router, as described by way of example in the background art, since the message received by the main gateway only includes the wireless address of the sub-router and does not include the physical address of the drop device, so the drive module cannot acquire the physical address of the drop device to generate the network bridge address table).
For a four-address router, the driver module may obtain a MAC address (where the MAC address is a physical address) and an IP address of a sub-router or a drop-off device of the sub-router, and the event alarm module uniformly packages information and reports the information to the management module in the form of an address resolution protocol message, that is, for the four-address router, the address resolution protocol message includes the physical address and the IP address of the sub-router or the drop-off device of the sub-router, and when the sub-router or the drop-off device of the sub-router accesses the system, the driver module may generate a bridge address table including the physical address of the sub-router or the drop-off device of the sub-router and a bridge address table of an access port of the sub-router accessing the main gateway (for the four-address router, as described in the example in the background art, a message received by the main gateway includes a wireless address of the sub-router and includes the physical address of the drop-off device, so the drive module can acquire the physical address of the drop device to generate the network bridge address table).
An event warning module: and the management module is responsible for uniformly packaging information, packaging corresponding message formats and forwarding the corresponding messages to the management module.
A management module: the system is in charge of gathering messages of the sub-routers and the hanging-down devices of the sub-routers, identifying and recording the information of the sub-routers or the hanging-down devices of the sub-routers after information matching, and for the unique identification of the sub-routers or the hanging-down devices of the sub-routers, the unique identification can be carried out on the devices only after the unique identification information formed by the physical addresses, the IP addresses and the access ports of the sub-routers or the hanging-down devices of the sub-routers is obtained.
The embodiment provides a three-four address router and a method for managing an under-hanging device thereof, which comprises a plurality of items in a configuration protocol message, a network address table, an MAC table and a bridge address table, wherein the configuration protocol message comprises an MAC address and an IP address;
matching the same MAC address in a bridge address table by using the MAC address of the configuration protocol message, if the same MAC address is not matched in the bridge address table according to the MAC address of the configuration protocol message, indicating that the equipment sending the configuration protocol message is a three-address router or a drop-on equipment of the three-address router, if the same MAC address is matched in the bridge address table according to the MAC address of the configuration protocol message, indicating that the equipment sending the configuration protocol message is a four-address router or a drop-on equipment of the four-address router, acquiring an access port in a row record corresponding to the MAC address in the matched bridge address table, and identifying the equipment according to the MAC address of the configuration protocol message, the IP address of the configuration protocol message and the matched access port in the bridge address table because the MAC address of the configuration protocol message is a physical address, the embodiment provides a mode that can be implemented in an actual scenario, and specifically includes:
assuming that the MAC address and the IP address included in the configuration protocol message obtained by the management module are 54: f2:94:1b:93:22 and 192.168.1.11, respectively, where the MAC address included in the configuration protocol message is a physical address, the same MAC address is matched from the bridge address table according to the MAC address 54: f2:94:1b:93:22 in the configuration protocol message, assuming that the bridge address table contains a row record of "54: f2:94:1b:93:22, PORT 1", the same MAC address as 54: f2:94:1b:93:22 can be matched in the bridge address table, and then the PORT1 (i.e. the MAC address included in the row record of "54: f2:94:1b:93:22, PORT 1" is fetched, and since the MAC address included in the configuration protocol message is a physical address, the MAC address 54: f2: 1b:93:22 in the configuration protocol message can be fetched, The IP address 192.168.1.11 of the configuration protocol message and the access PORT1 matched in the bridge address table are used as the device identification information to identify the device. And if the same MAC address is not matched in the bridge address table according to the configuration protocol message, the configuration protocol message is sent by the three-address router or the drop device of the three-address router.
As shown in fig. 2 and fig. 3, the network address table is generated by a configuration protocol message and an address resolution protocol message, the configuration protocol message includes a MAC address and an IP address, where the MAC address included in the configuration protocol message is a physical address, and the address resolution protocol message includes: and a MAC address and an IP address, wherein the MAC address in the address resolution protocol message is a wireless address for the three-address router or the off-hook device of the three-address router, and the MAC address in the address resolution protocol message is a physical address for the four-address router or the off-hook device of the four-address router, so that the network address table generated by the configuration protocol message and the address resolution protocol message includes the IP address and two MAC addresses (the physical address and the wireless address) for the three-address router or the off-hook device of the three-address router. For a four address router or a four address router's off-hook device, the network address table contains only IP addresses and one MAC address (physical address).
The MAC table is generated from MAC messages, and since the MAC messages contain the MAC addresses (wireless addresses) and access ports of the sub-routers, the MAC addresses (wireless addresses) and access ports of the sub-routers are also contained in the MAC table.
When a three-address router (i.e., a sub-router) accesses a main gateway or a main router, this embodiment takes accessing the main gateway as an example, and generates a bridge address table including a MAC address (wireless address) of the sub-router and a sub-router access port, and when a four-address router (i.e., a sub-router) or a drop-off device of the four-address router accesses a network, generates a MAC address (physical address) of the drop-off device of the sub-router or the sub-router and a bridge address table including the sub-router access port, where the access ports related to this embodiment are all access ports when the sub-router accesses the main gateway, and the physical addresses related to this embodiment are all physical addresses of the drop-off device of the sub-router or the sub-router.
When a management module receives a message of a router or a down-hanging device of the router, firstly, the type of the received message is judged, and the message types are generally divided into three types: the method comprises the steps of configuring protocol messages, address resolution protocol messages and MAC messages, wherein a certain time delay exists between the factor router or the lower-hanging device of the sub-router to acquire addresses and information interaction, the management module receives three messages without a fixed sequence, the management module initiates a round of information matching when receiving any message, IP addresses related to the embodiment are all IP addresses of the lower-hanging device of the sub-router or the sub-router, and the three-address router and the four-address router are all sub-routers. The device is identified based on a plurality of physical addresses, IP addresses, and access ports.
As shown in fig. 4, step 10, acquiring a configuration protocol message, and if the same MAC address is not matched in a bridge address table according to the configuration protocol message, matching different MAC addresses in a network address table according to an IP address of the configuration protocol message;
configuration protocol message initiated matching: the method comprises the steps that a management module acquires a configuration protocol message, wherein the configuration protocol message comprises an MAC address and an IP address, the MAC address of the configuration protocol message is a physical address, the MAC address in a bridge address table is matched according to the MAC address in the configuration protocol message (namely whether a row record corresponding to the MAC address which is the same as the MAC address in the configuration protocol message is contained in the bridge address table or not is judged), and if the same MAC address is matched in the bridge address table according to the configuration protocol message (the configuration protocol message is sent by a four-address router or a drop device of the four-address router), an access port in the row record corresponding to the MAC address in the matched bridge address table is acquired so as to acquire the physical address, the IP address and the access port to identify the device;
the embodiment provides a mode that can be realized in an actual scene, specifically:
assuming that the MAC address and the IP address contained in the configuration protocol message are 54: f2:94:1b:93:22 and 192.168.1.11, respectively, the management module matches the same MAC address from the bridge address table according to the MAC address 54: f2:94:1b:93:22 in the configuration protocol message, assuming that the bridge address table contains a line record of "54: f2:94:1b:93:22, PORT 1", the bridge address table can be matched with the same MAC address 54: f2:94:1b:93:22 as the MAC address in the line record of the configuration protocol message, and then the line record of "54: f2:94:1b:93:22, PORT 1" (access PORT), the MAC address contained in the configuration protocol message is a physical address, so that the MAC address 54: f2:94:1b:93:22, the corresponding address of the configuration protocol message and the line record of the IP address in the configuration protocol message are matched with the line record of the PORT1 (i. 1 2) in the network bridge address table, and the IP address of the PORT 1.192.11 in the network bridge address record of the configuration protocol message And the identification information is used for identifying the equipment. If the same MAC address is not matched in the bridge address table according to the configuration protocol message, namely, if the line record with the same MAC address cannot be matched in the bridge address table according to the MAC address 54: f2:94:1b:93:22 in the configuration protocol message (at this time, the configuration protocol message is sent by a three-address router or a lower hanging device of the three-address router), judging whether the IP address according to the configuration protocol message is matched with a different MAC address in the network address table; firstly, whether the current network address table contains the same row record as the IP address 192.168.1.11 of the configuration protocol message is judged according to the IP address 192.168.1.11 of the configuration protocol message.
Step 20, if different MAC addresses are matched in a network address table according to the IP address of the configuration protocol message, updating the MAC address in the configuration protocol message to a row record corresponding to the different MAC addresses matched in the network address table;
specifically, whether a row record which is the same as the IP address of the configuration protocol message is contained in a current network address table is judged according to the IP address 192.168.1.11 of the configuration protocol message; assuming that the network address table contains a row record of "54: F2:94:1B:93:32, 192.168.1.11", a row record of the same IP address 192.168.1.11 of the configuration protocol message may be matched in the network address table, and then it is determined whether the MAC address 54: F2:94:1B 93:22 of the configuration protocol message is the same as the MAC address in the matched row record of "54: F2:94:1B:93:32, 192.168.1.11", since the MAC address in the row record of "54: F2:94:1B:93:32, 192.168.1.11" is 54: F64: 94:1B:93:32, which is different from the MAC address 54: 483f 5: 94:1B:93:22 of the configuration protocol message, the row record of the MAC address 54: F2:94:1B:93:22 of the configuration protocol message is updated 3693: 94: 93:22, the row record of the MAC address 54: F2:94: 1: 93: 1B:93:22 of the configuration protocol message is updated 3693: 93: 78, and the new row record of the IP address of the row record of the configuration protocol message is updated 3693: 1.168.1.1.11.1.11.1.11.11.3: 94: 93: 3: 94: 93: 3: 94: 93: 1.1.11 of the configuration protocol message, 54: f2:94:1b 93:22 and 192.168.1.11.
Since the MAC address matched in the network address table according to the IP address 192.168.1.11 of the configuration protocol message is 54: F2:94:1B:93:32 different from the MAC address 54: F2:94:1B:93:22 of the configuration protocol message, the same MAC address is matched in the MAC table according to the MAC address 54: F2:94:1B:93:32, namely the corresponding access port is found.
Step 30, judging whether different MAC addresses matched in a network address table according to the IP address of the configuration protocol message are matched with the same MAC address in the MAC table;
and step 40, if different MAC addresses matched in the network address table according to the IP address of the configuration protocol message are matched to the same MAC address in the MAC table, acquiring an access port corresponding to the same MAC address matched in the MAC table so as to identify the equipment.
Assuming that the current MAC table contains a record of "54: F2:94:1B:93:32, PORT 1", the different MAC addresses 54: F2:94:1B:93:32 matched in the network address table according to the IP address of the configuration protocol message may be matched to the row record "54: F2:94:1B:93:32, PORT 1" corresponding to the same MAC address in the MAC table, and then the PORT1 (i.e. access PORT) in the row record of "54: F2:94:1B:93:32, PORT 1" is taken out, where the different MAC addresses matched in the network address table according to the IP address of the configuration protocol message are wireless addresses, and the IP address 54: F2:94:1B:93:22 of the configuration protocol message, the IP address 192.168.1.11 of the configuration protocol message, and the PORT1 taken out from the MAC table are used as identification device information.
And step 50, if the different MAC addresses matched in the network address table according to the IP address of the configuration protocol message are not matched with the same MAC address in the MAC table, waiting for updating the MAC table.
As shown in fig. 5, if the same MAC address is matched in the bridge address table according to the configuration protocol message, the method specifically includes: the network bridge address table comprises MAC addresses and access ports, wherein the MAC addresses in the network bridge address table comprise wireless addresses and physical addresses;
step 101, matching the MAC address in the network bridge address table according to the MAC address in the configuration protocol message;
the management module acquires a configuration protocol message, wherein the configuration protocol message comprises an MAC address and an IP address, the MAC address of the configuration protocol message is a physical address, and the MAC address in the network bridge address table is matched according to the MAC address in the configuration protocol message (namely, whether a row record corresponding to the MAC address which is the same as the MAC address in the configuration protocol message is contained in the network bridge address table or not is judged).
Step 102, if the same MAC address is matched in the bridge address table according to the MAC address of the configuration protocol message (indicating that the configuration protocol message is sent by the four-address router or the drop device of the four-address router), acquiring the access port in the row record corresponding to the MAC address in the matched bridge address table, so as to identify the device.
Assuming that the MAC address and the IP address included in the configuration protocol message obtained by the management module are 54: f2:94:1b:93:22 and 192.168.1.11, respectively, where the MAC address of the configuration protocol message is a physical address, matching the same MAC address from the bridge address table according to the MAC address 54: f2:94:1b:93:22 in the configuration protocol message, assuming that the bridge address table contains a row record of "54: f2:94:1b:93:22, PORT 1", matching the same MAC address as the MAC address 54: f2:94:1b:93:22 of the configuration protocol message in the bridge address table, and then fetching the row record of "54: f2:94:1b:93:22, PORT 1" (i.e., accessing PORT), since the MAC address included in the configuration protocol message is a physical address, the MAC address 54: f2:94:1b:93:22 and the IP address of the configuration protocol message is 54: 93: 78: 93: 1b: 78: 22, The IP address 192.168.1.11 of the configuration protocol message and the access PORT PORT1 in the row record corresponding to the matched MAC address in the bridge address table are used as the equipment identification information to identify the equipment.
As shown in fig. 6, the matching of different MAC addresses in a network address table according to the IP address of the configuration protocol message specifically includes:
step 201, judging whether a current network address table contains a row record which is the same as the IP address of the configuration protocol message or not according to the IP address of the configuration protocol message;
if the same MAC address is not matched in the bridge address table according to the configuration protocol message (at this time, the configuration protocol message is sent by a three-address router or a drop device of the three-address router), different MAC addresses are matched in the network address table according to the IP address of the configuration protocol message, and whether the current network address table contains the row record which is the same as the IP address of the configuration protocol message is judged according to the IP address of the configuration protocol message. Assuming that the MAC address and the IP address included in the configuration protocol message obtained by the management module are 54: f2:94:1b:93:22 and 192.168.1.11, it is first determined whether the current network address table contains the same row record as the IP address 192.168.1.11 of the configuration protocol message according to the IP address 192.168.1.11 of the configuration protocol message.
Step 202, if it is determined that the current network address table contains a row record that is the same as the IP address of the configuration protocol message, determining whether the MAC address of the configuration protocol message is the same as the MAC address corresponding to the row record that is the same as the IP address of the configuration protocol message in the network address table;
and if the current network address table does not contain the row record which is the same as the IP address of the configuration protocol message, storing the MAC address and the IP address in the configuration protocol message into the network address table, waiting for the initiation of the address resolution protocol message to match and updating the network address table.
Assuming that the network address table contains a row record of "54: F2:94:1B:93:32, 192.168.1.11", the same row record of "54: F2:94:1B:93:32, 192.168.1.11" as the IP address of 192.168.1.11 of the configuration protocol message may be matched in the network address table, and then it is determined whether the MAC address of the configuration protocol message 54: F2:94:1B:93:22 is the same as the MAC address of the matched row record of "54: F2:94:1B:93:32, 192.168.1.11".
And 204, if the IP addresses are different, matching different MAC addresses in a network address table according to the IP address of the configuration protocol message.
Since the MAC address in the record of the line "54: F2:94:1B:93:32, 192.168.1.11" is 54: F2:94:1B:93:32, which is different from the MAC address 54: F2:94:1B:93:22 of the configuration protocol message, it indicates that a different MAC address is matched in the network address table according to the IP address of the configuration protocol message.
Step 203, if it is determined that the current network address table does not contain the row record that is the same as the IP address of the configuration protocol message, the configuration protocol message is stored in the current network address table.
As shown in fig. 7, an address resolution protocol message is further included, wherein the address resolution protocol message includes a MAC address and an IP address.
Step 301, acquiring an address resolution protocol message;
matching initiated by address resolution protocol messages: the management module acquires an address resolution protocol message, wherein the address resolution protocol message comprises a MAC address and an IP address, the MAC address in the address resolution protocol message is a wireless address, and the MAC address and the IP address in the acquired address resolution protocol message are respectively 54: F2:94:1B:93:32 and 192.168.1.11.
Step 302, judging whether a current network address table contains a row record which is the same as the IP address of the address resolution protocol message or not according to the IP address of the address resolution protocol message;
judging whether a current network address table contains row records which are the same as the IP address of the address resolution protocol message or not according to the IP address of the address resolution protocol message, if so, judging whether the current network address table contains the row records which are the same as the IP address of the address resolution protocol message or not according to the IP address 192.168.1.11 of the address resolution protocol message, and if not, storing the address resolution protocol message into the current network address table. Assuming that the network address table contains a row record of "54: f2:94:1b:93:22, 192.168.1.11", the same row record of "54: f2:94:1b:93:22, 192.168.1.11" as the IP address of the address resolution protocol message 192.168.1.11 can be matched in the network address table.
Step 303, if it is determined that the current network address table contains a row record that is the same as the IP address of the arp message, determining whether the MAC address of the arp message is the same as the MAC address corresponding to the row record in the network address table that is the same as the IP address of the arp message;
specifically, the IP address 192.168.1.11 in the address resolution protocol message is matched from the network address table, and if the network address table contains a row record of "54: F2:94:1B:93:22, 192.168.1.11", a row record of "54: F2:94:1B:93:22, 192.168.1.11" identical to the IP address 192.168.1.11 in the address resolution protocol message may be matched in the network address table, and then it is determined whether the MAC address 54: F2:94:1B:93:32 of the address resolution protocol message is identical to the MAC address in the matched row record of "54: F2:94:1B:93:22, 192.168.1.11", that is, it is determined whether the corresponding physical address is already stored in the network address table.
Step 305, if the address is different, updating the MAC address in the arp message to the row record corresponding to the different MAC address matched in the network address table;
since the row of the same IP address that is matched from the network address table according to the IP address 192.168.1.11 in the address resolution protocol message is recorded as "54: f2:94:1b:93:22, 192.168.1.11", the MAC address in this row record is 54: f2:94:1b:93:22, its MAC address 54 with the address resolution protocol message: f2:94:1B:93:32 are different, indicating that the corresponding physical entity has been stored in the network address table, line record "54: f2:94:1b: MAC address 54 in 93:22, 192.168.1.11 ": f2:94:1b:93:22 is a physical address, and the MAC address 54 in the address resolution protocol message is: f2:94:1B:93:32 to "54: f2:94:1b:93:22, 192.168.1.11', the updated network address table contains 54: f2:94:1B:93:32, 54: f2:94:1b:93:22 and 192.168.1.11.
Step 306, according to whether the MAC address of the address resolution message is matched with the same MAC address in a MAC table;
step 307, if the same MAC address is matched in the MAC table according to the MAC address of the arp message, acquiring an access port corresponding to the same MAC address matched in the MAC table, so as to identify the device.
Assuming that the current MAC table contains a record of "54: F2:94:1B:93:32, PORT 1", the same MAC address may be matched in the MAC table according to the MAC address 54: F2:94:1B:93:32 of the address resolution protocol message, the PORT1 (i.e., access PORT) in the record of "54: F2:94:1B:93:32, PORT 1" may be taken out after matching, the MAC address (physical address) 54: F2:94:1B:93:22, IP address 192.168.1.11 in the row record corresponding to the different MAC address matched according to the IP address of the address resolution protocol message and the PORT1 taken out from the MAC table may be used as the device identification information, step 308, and if the same MAC address is not matched in the MAC table according to the MAC address of the address resolution protocol message, the update of the MAC table may be waited.
Step 304, if it is determined that the current network address table does not contain the row record that is the same as the IP address of the arp message, the arp message is stored in the current network address table.
Specifically, assuming that the MAC address and the IP address included in the address resolution protocol message obtained by the management module are 54: F2:94:1B:93:32 and 192.168.1.11, respectively, and the IP address 192.168.1.11 in the address resolution protocol is matched from the network address table, and the row record the same as the row record of the IP address 192.168.1.11 in the address resolution protocol cannot be matched, the address resolution protocol message is stored in the current network address table.
As shown in fig. 8, further comprising a MAC message, wherein the MAC message comprises a MAC address and an access port:
step 401, acquiring an MAC message, and updating the MAC message into an MAC table;
MAC message initiated matching: the management module acquires a MAC message, wherein the MAC message comprises a MAC address and an access PORT, the MAC address contained in the MAC message is a wireless address, the MAC message comprises the MAC address and the access PORT is updated into a MAC table, and the MAC address 54: F2:94:1B:93:32 and the access PORT PORT1 are updated into the MAC table on the assumption that the MAC address and the access PORT in the acquired MAC message are 54: F2:94:1B:93:32 and PORT1 respectively.
Step 402, judging whether the current network address table contains the row record which is the same as the MAC address of the MAC message according to the MAC address of the MAC message.
Assuming that the MAC address and the access PORT contained in the obtained MAC message are 54: F2:94:1B:93:32 and PORT1, respectively (the MAC address contained in the MAC message is a wireless address), and the current network address table contains a line record of "54: F2:94:1B:93:32, 54: F2:94:1B:93:22, 192.168.1.11" (that is, both the address resolution protocol message and the configuration protocol message corresponding to the device sending the MAC message are stored in the network address table), it can be determined that the current network address table contains the same line record as the MAC address 54: F2:94:1B:93:32 of the MAC message.
If the current network address table contains the row record which is the same as the MAC address of the MAC message, whether the row record which is the same as the MAC address of the MAC message in the current network address table contains the MAC address which is different from the MAC address of the MAC message or not is judged (namely, the corresponding physical address is inquired according to the wireless address contained in the MAC message), and if the row record contains the MAC address, equipment is identified.
Judging that the current network address table contains the MAC address 54 corresponding to the MAC message: f2:94:1B: after the recording of the same row 93:32, determine the row record "54 in the current network address table: f2:94:1B:93:32, 54: f2:94:1b:93:22, 192.168.1.11 "with the MAC address 54 of the MAC message: f2:94:1B:93:32 different MAC addresses of the MAC address, it can be seen that "54: f2:94:1B:93:32, 54: f2:94:1b:93:22, 192.168.1.11 "also contains MAC address 54: f2:94:1b:93:22, the MAC address 54: f2:94:1b:93:22 and MAC address 54 of the MAC message: f2:94:1B: the ratio of the weight of the rollers 93 to 32 is not the same, the MAC address 54 can be considered: f2:94:1b: the physical address of the address 93:22, then 54: f2:94:1b:93:22, 192.168.1.11 and PORT1 as device identification information. The above description is the complete process of the management method for the three-four address router and the off-hook device thereof provided by the embodiment of the present invention. This embodiment is merely an example and is not intended to limit the present invention.
Example 2:
the embodiment also provides an embodiment of a three-four address router and a method for managing the under-hung device thereof, which specifically comprises the following steps:
as shown in fig. 15, assuming that three devices, namely, a three-address router, a mobile phone 1 and a mobile phone 2, are sequentially connected to a main gateway to form a three-address networking mode, the most common message sequence is taken as an example in this embodiment, that is, a management module sequentially receives an MAC message, a configuration protocol message and an address resolution protocol message, and then identifies the three devices according to the received three messages.
(1-1) as shown in fig. 9, a three-address router is accessed to a master gateway:
when the three-address router accesses the main gateway, a network bridge address table containing the MAC address of the three-address router (the MAC address is the wireless address of the three-address router) and the access port accessing the main gateway is generated.
The management module acquires the MAC message, the MAC message carries the MAC address 1A1B1C1D and the access PORT PORT1, wherein, the MAC message carries the MAC address as the wireless address, and then the MAC message is updated into the MAC table, the embodiment assumes to be updated into the row record 1 of the MAC table, judging whether the current network address table contains the same row record as the MAC address 1A1B1C1D of the MAC message according to the MAC address 1A1B1C1D of the MAC message, since the management module is assumed to receive the MAC message first in this embodiment, the current network address table has not stored the arp message sent by the three-address router, therefore, the same row record as the MAC address 1A1B1C1D of the MAC message cannot be found in the network address table, and at this time, the address resolution protocol message and/or the configuration protocol message sent by the three-address router are waited to initiate matching and update the network address table.
(Note: MAC addresses 1A1B1C1D, 1A1B1C1d, etc. in this embodiment are for convenience of illustration and example)
The management module acquires a configuration protocol message, wherein the configuration protocol message carries a MAC address 1a1b1c1d and an IP address 192.168.1.1, the configuration protocol message carries a MAC address as a physical address, the MAC address 1a1b1c1d in the configuration protocol message is matched with the MAC address in the bridge address table (namely, whether a row record corresponding to the MAC address same as the MAC address in the configuration protocol message is contained in the bridge address table is judged), if the MAC address 1a1b1c1d in the configuration protocol message matches the same MAC address in the bridge address table, (indicating that the configuration protocol message is sent by a four-address router or a four-address router, if the MAC address 1a1b1c1d in the configuration protocol message does not match the same MAC address in the bridge address table, the configuration protocol message does not match the same MAC address in the bridge address table (indicating that the row record of the configuration protocol message is matched by the three-address router or the three-address router at this time) (indicating that the same MAC address cannot be matched by the MAC address in the configuration protocol message) That is sent by the drop device of the three address router), since the access is assumed to be the three address router in this embodiment, the MAC address 1a1b1c1d according to the configuration protocol message cannot be matched with the same MAC address in the bridge address table. At this time, it is determined whether the current network address table contains the row record that is the same as the IP address 192.168.1.1 of the configuration protocol message according to the IP address 192.168.1.1 of the configuration protocol message, because this embodiment assumes that the management module receives the configuration protocol message first, and therefore the management module has not received the address resolution protocol message sent by the three-place router, then the same IP address cannot be found in the network address table according to the IP address 192.168.1.1 of the configuration protocol message, at this time, the MAC address 1a1b1c1d and the IP address 192.168.1.1 of the configuration protocol message are stored in the current network address table, and it is assumed that the MAC address 1a1b1c1d and the IP address 192.168.1.1 of the configuration protocol message have been stored in the row record 1 of the network address table.
The method comprises the steps that a management module obtains an address resolution protocol message, wherein the address resolution protocol message carries an MAC address 1A1B1C1D and an IP address 192.168.1.1, and whether a current network address table contains a row record which is the same as the IP address of the address resolution protocol message or not is judged according to the IP address in the address resolution protocol message; since the management module has received the configuration protocol message sent by the three-address router and has stored the MAC address 1A1B1C1d and the IP address 192.168.1.1 of the configuration protocol message in the row record 1 of the network address table, it can match the same IP address in the network address table according to the IP address 192.168.1.1 in the address resolution protocol message, at this time, it is determined whether the MAC address 1A1B1C1D of the address resolution protocol message is the same as the MAC address corresponding to the row record in the network address table that is the same as the IP address of the address resolution protocol message, since the row record that is matched to the same IP address in the network address table according to the IP address 192.168.1.1.1 is "1 A1B1C1d, 192.168.1.1", it can be known that the MAC address corresponding to the matched row record is 1A1B1C1d, which is not the same as the MAC address A1B1C1 of the address resolution protocol message D, because the wireless address D is carried by the wireless address, then the physical address of the MAC address 1A1B1C1d, 192.168.1.1 in the row record "1 A1B1C1 d" in the row record "1B 1C1d, 192.168.1.1", the MAC address 1A1B1C1D in the address resolution protocol message is updated to the row record "1 A1C 1d, 192.168.1.1" corresponding to the different MAC addresses matched in the network address table, i.e. the row record 1 of the network address table, (if the row record of the same IP address is matched in the network address table according to the IP address 192.168.1.1 in the address resolution protocol message, and the MAC address of the address resolution protocol message is not the same as the MAC address corresponding to the row record of the same IP address in the network address table, then the drop device that sent the address resolution protocol message is a three-address router or a three-address router, but not a four-address router, and the MAC address of the address resolution protocol message is the same as the row record in the network address table The address is a physical address, i.e., 1a1b1c1d is a physical address). After updating the MAC address 1A1B1C1D in the address resolution protocol message to the row record 1 of the row record "1 A1B1C1d, 192.168.1.1" corresponding to the different MAC addresses matched in the network address table, the row record 1 of the network address table contains 1A1B1C1D, 1A1B1C1d and 192.168.1.1.
And finally, matching the same MAC address in the MAC table by using the MAC address of the message of the address resolution protocol, and if the same MAC address is matched, acquiring an access port corresponding to the same matched MAC address in the MAC table so as to identify the equipment. That is, the MAC address 1A1B1C1D of the address resolution protocol message matches the same MAC address in the MAC table, and since the MAC message has been received by the management module and stored in the MAC table, the current MAC table contains a row record of "1 A1B1C1D, PORT 1", and then the MAC address 1A1B1C1D of the addressable resolution protocol message matches the row record of "1 A1B1C1D, PORT 1" corresponding to the same MAC address in the MAC table, and then the row record of "1 A1B1C1D, PORT 1" is matched, and the PORT access PORT1 in the row record of "1 A1B1C1D, 1A1B1C1d, 192.168.1.1 and PORT1 is taken out, and the row record 1 of the device list is taken as the device identification information according to 1A1B1C1d, 192.168.1.1.3656 and PORT 1. After the management module receives the MAC message, the configuration protocol message and the address resolution protocol message when the three-address router accesses the main gateway:
the MAC table contains row records "1A 1B1C1D, PORT 1";
the network address table contains row records "1A 1B1C1D, 1A1B1C1d, 192.168.1.1"; (ii) a
The bridge address table contains row records "1A 1B1C1D, PORT 1".
The device list contains the row record "1 A1B1C1D, 1A1B1C1d, 192.168.1.1, PORT 1", i.e., row record 1 of the device list.
(1-2) as shown in fig. 10, the mobile phone 1 is accessed to the three-address router:
when the lower-hanging device of the three-address router is accessed into the system, the driving module cannot generate the corresponding network bridge address table, namely when the mobile phone 1 is accessed into the three-address router, the corresponding network bridge address table cannot be generated.
The actual access point of the mobile phone 1 is a three-address router, but not a main gateway, so that the main gateway cannot receive the MAC message when the mobile phone 1 accesses the three-address router;
the management module acquires a configuration protocol message, wherein the configuration protocol message carries a MAC address a1b1c1d1 and an IP address 192.168.1.11, the configuration protocol message carries a MAC address as a physical address, and then matches the MAC address in the bridge address table according to the MAC address a1b1c1d1 in the configuration protocol message (i.e. whether a row record corresponding to the MAC address same as the MAC address in the configuration protocol message is contained in the bridge address table is judged), if the same MAC address is matched in the bridge address table according to the MAC address a1b1c1d1 of the configuration protocol message, (indicating that the configuration protocol message is sent by a four-address router or a lower-hanging device of the four-address router), if the same MAC address is not matched in the bridge address table according to the MAC address a1b1c1d1 of the configuration protocol message, the configuration protocol message indicates that the same row record cannot be matched in the bridge address table (indicating that the configuration protocol message is a row record of the three-address router or the three-address router at the same row record cannot be matched in the configuration protocol message according to the MAC address a1b1c1d1 of the configuration protocol message Sent by the drop device of the address router), since the embodiment assumes that the handset 1 accesses the three-address router (i.e. the handset 1 gets the drop device as the three-address router), the MAC address a1b1c1d1 according to the configuration protocol message cannot be matched with the same MAC address in the bridge address table. At this time, it is determined whether the current network address table contains the row record that is the same as the IP address 192.168.1.11 of the configuration protocol message according to the IP address 192.168.1.11 of the configuration protocol message, because the embodiment assumes that the management module receives the configuration protocol message first, and therefore the management module has not received the address resolution protocol message sent by the mobile phone 1, the same IP address cannot be found in the network address table according to the IP address 192.168.1.11 of the configuration protocol message, at this time, the MAC address a1b1c1d1 and the IP address 192.168.1.11 of the configuration protocol message are stored in the row record 2 of the current network address table, and it is waited for the address resolution protocol message to initiate matching and update the network address table.
The method comprises the steps that a management module obtains an address resolution protocol message, wherein the address resolution protocol message carries an MAC address 1A1B1C1D and an IP address 192.168.1.11, and whether a current network address table contains a row record which is the same as the IP address of the address resolution protocol message or not is judged according to the IP address in the address resolution protocol message; since the management module has received the configuration protocol message sent by the mobile phone 1 and has stored the MAC address A1B1C1d1 and the IP address 192.168.1.11 of the configuration protocol message in the row record 2 of the network address table, it can match the same IP address in the network address table according to the IP address 192.168.1.11 in the address resolution protocol message, at this time, it is determined whether the MAC address 1A1B1C1D of the address resolution protocol message is the same as the MAC address corresponding to the row record in the network address table which is the same as the IP address of the address resolution protocol message, since the row record matched to the same IP address in the network address table according to the IP address 192.168.1.11 in the address resolution protocol message is "A1B 1C1d1, 192.168.1.1.1", it is known that the MAC address matched to the row record is A1B1C1d1, which is different from the MAC address 1A1B1C 56 of the address resolution protocol message, and the MAC address record matched to the address of the address resolution protocol message is "591C 1a 591C 1B 1d 461B 1, 192.168.1.1 ″, that is, the MAC address is updated to the row record 2 of the network address table (if the row record of the same IP address is matched in the network address table according to the IP address 192.168.1.11 in the address resolution protocol message, and the MAC address of the address resolution protocol message is not the same as the MAC address corresponding to the row record of the same IP address in the network address table, it indicates that the address resolution protocol message is sent by the three-address router or the drop-off device of the three-address router, but not sent by the four-address router or the drop-off device of the four-address router, and the MAC address of the address resolution protocol message is the physical address corresponding to the row record of the same IP address in the network address table, that is, a1b1c1d1 is the physical address). After updating the MAC address 1A1B1C1D in the address resolution protocol message to the row records "A1B 1C1d1, 192.168.1.11" corresponding to the different MAC addresses matched in the network address table, the network address table contains 1A1B1C1D, A1B1C1d1 and 192.168.1.11.
And finally, matching the same MAC address in the MAC table by using the MAC address of the message of the address resolution protocol, and if the same MAC address is matched, acquiring an access port corresponding to the same matched MAC address in the MAC table so as to identify the equipment. That is, the MAC address 1A1B1C1D matches the same MAC address in the MAC table according to the address resolution protocol message, and the MAC table containing the row record "1 A1B1C1D, PORT 1" is generated when the three-address router accesses the master gateway, so that the row records "1 A1B1C1D, PORT 1" corresponding to the same MAC address are matched in the MAC table according to the MAC address 1A1B1C1D of the address resolution protocol message, and the row records "1 A1B1C1D, PORT 1" are matched, and then the row records "1 A1B1C1D, PORT 1" are taken out, and 1A1B1C1d 1, 192.168.1.11 and PORT1 are put into the row record 2 of the device list according to the access PORT1 in the row record of A1B1C1d1, 192.168.1.11 and PORT1 as the device identification information. After receiving the configuration protocol message and the address resolution protocol message when the mobile phone 1 accesses the three-address router, the management module:
the row record in the MAC message is unchanged, still containing the row record "1A 1B1C1D, PORT 1";
the network address table contains row records "1 A1B1C1D, 1A1B1C1d, 192.168.1.1" and "1 A1B1C1D, A1B1C1d1, 192.168.1.11", namely row record 1 and row record 2, respectively, of the network address table.
The device list contains row records "1 A1B1C1D, 1A1B1C1d, 192.168.1.1, PORT 1" and "1 A1B1C1D, A1B1C1d1, 192.168.1.11 and PORT 1", i.e., row record 1 and row record 2, respectively, of the device list.
(1-3) as shown in fig. 11, the handset 2 is accessed to the three address router:
the method process when the mobile phone 2 is accessed into the three-address router can refer to the method process when the mobile phone 1 is accessed into the three-address router, and after the mobile phone 2 is accessed into the three-address router:
the row record in the MAC message is unchanged, still containing the row record "1A 1B1C1D, PORT 1";
the network address table contains row records "1 A1B1C1D, 1A1B1C1d, 192.168.1.1", "1 A1B1C1D, A1B1C1d1, 192.168.1.11" and "1 A1B1C1D, a2B2C2d2, 192.168.1.12", namely row record 1, row record 2 and row record 3, respectively, in the network address table.
The device list contains row records "1 A1B1C1D, 1A1B1C1d, 192.168.1.1, PORT 1", "1 A1B1C1D, A1B1C1d1, 192.168.1.11 and PORT 1" and "1 A1B1C1D, a2B2C2d2, 192.168.1.12, PORT 1", namely row record 1, row record 2 and row record 3, respectively, of the device list.
As shown in fig. 15, three devices, namely, a four-address router, a mobile phone 3 and a mobile phone 4, are sequentially connected to a main gateway to form a four-address networking mode, and the three devices are identified according to received messages.
(2-1) as shown in fig. 12, a four-address router is accessed to the master gateway:
when the four-address router or the drop device of the four-address router accesses the main gateway, the driving module generates a bridge address table containing the physical address and the access PORT of the four-address router or the drop device of the four-address router, and if the physical address and the access PORT of the four-address router are 2a2b2c2d and PORT2, respectively, when the four-address router accesses the main gateway, a row record "2 a2b2c2d, PORT 2" is generated in a row record 1 of the bridge address table.
The management module acquires a configuration protocol message, wherein the configuration protocol message carries a MAC address 2a2b2c2d and an IP address 192.168.1.2, the configuration protocol message carries the MAC address as a physical address, and then matches the MAC address in the bridge address table according to the MAC address 2a2b2c2d in the configuration protocol message (i.e. determines whether a row record corresponding to the same MAC address as the MAC address in the configuration protocol message is contained in the bridge address table), if the same MAC address is matched in the bridge address table according to the MAC address 2a2b2c2d of the configuration protocol message (indicating that the configuration protocol message is sent by a four-address router or a four-address router drop device), if the same MAC address is not matched in the bridge address table according to the MAC address 2a2b2c2d of the configuration protocol message (indicating that the configuration protocol message is sent by a three-address router or a three-address router drop device), since the present embodiment assumes that the access is a four-address router, when the four-address router accesses the host gateway, a row record "2 a2b2c2d, PORT 2" is generated in the bridge address table, and then the row record "2 a2b2c2d, PORT 2" (that is, matched in the row record 1 of the bridge address table) corresponding to the same MAC address can be matched in the bridge address table according to the MAC address 2a2b2c2d of the configuration protocol message, the PORT2 in the row record corresponding to the MAC address in the matched bridge address table is obtained, the access PORT 2a2b2c2d, 192.168.1.2, and PORT2 are placed in the row record 1 of the device list, and the identification information of the device is obtained according to the row records 2a2b2c2d, 192.168.1.2, and PORT 2.
When the four-address router is accessed to the main gateway: the bridge address table contains row records "2 a2b2c2d, PORT 2", corresponding to row record 1 in the bridge address table;
the device list contains row records "2 a2b2c2d, 192.168.1.2, PORT 2", corresponding to row record 1 of the device list.
(2-2) as shown in fig. 13, the mobile phone 3 is accessed to a four-address router:
when the mobile phone 3 accesses the system, the driving module will generate a bridge address table containing the physical address and access PORT of the mobile phone 3, and assuming that the physical address and access PORT of the mobile phone 3 are a3b3c3d3 and PORT2, respectively, then when the mobile phone 3 accesses the main gateway, the line records "a 3b3c3d3 and PORT 2" will be generated in the line record 2 of the bridge address table "
The actual access point of the mobile phone 3 is a four-address router instead of the master gateway, so that the master gateway cannot receive the MAC message when the mobile phone 3 accesses the four-address router;
the management module acquires a configuration protocol message, wherein the configuration protocol message carries MAC addresses a3b3c3d3 and an IP address 192.168.1.21, the configuration protocol message carries MAC addresses as physical addresses, and then matches the MAC addresses in the bridge address table according to the MAC addresses a3b3c3d3 in the configuration protocol message (i.e. determines whether a line record corresponding to the MAC address identical to the MAC address in the configuration protocol message is contained in the bridge address table), if the same MAC address is matched in the bridge address table according to the MAC address a3b3c3d3 of the configuration protocol message (indicating that the configuration protocol message is sent by a four-address router or a four-address router drop device), if the same MAC address is not matched in the bridge address table according to the MAC address a3b3c3d3 of the configuration protocol message (indicating that the configuration protocol message is sent by a three-address router or a three-address router drop device), since the present embodiment assumes that the mobile phone 3 is accessed by a four-address router, when the mobile phone 3 accesses the four-address router, the row record "a 3b3c3d3 and PORT 2" is generated in the bridge address table, and then the row record "a 3b3c3d3 and PORT 2" corresponding to the same MAC address is matched with the row record 2 in the bridge address table according to the MAC address a3b3c3d3 of the configuration protocol message, the PORT2 in the row record corresponding to the MAC address in the matched bridge address table is obtained, the a3b3c3d3, 192.168.1.21 and PORT2 are put into the device list, and the identification information of the device is obtained according to 2a2b2c2d, 192.168.1.2 and PORT 2.
After the mobile phone 3 accesses the four-address router: the bridge address table contains "2 a2b2c2d, PORT 2" and "a 3b3c3d3, PORT 2", which respectively correspond to row record 1 and row record 2 in the bridge address table;
the device list contains row records "2 a2b2c2d, 192.168.1.2, PORT 2" and "a 3b3c3d3, 192.168.1.21, PORT 2", corresponding to row record 1 and row record 2, respectively, of the device list.
(2-3) as shown in fig. 14, the mobile phone 4 is connected to a four-address router:
the method process when the mobile phone 4 is accessed to the four-address router can refer to the method process when the mobile phone 3 is accessed to the four-address router, and after the mobile phone 4 is accessed to the four-address router: the bridge address table contains "2 a2b2c2d, PORT 2", "a 3b3c3d3, PORT 2", and "a 4b4c4d4, PORT 2", which respectively correspond to row record 1, row record 2 and row record 3 in the bridge address table;
the device list contains row records "2 a2b2c2d, 192.168.1.2, PORT 2" and "a 3b3c3d3, 192.168.1.21, PORT 2" and "a 4b4c4d4, 192.168.1.22, PORT 2", corresponding to table 1, row record 2 and row record 3 of the device list, respectively.
The devices may be identified from the device list.
Example 3:
on the basis of the three-four address router and the method for managing the under-hanging device thereof provided in the foregoing embodiments 1 and 2, the present invention further provides a three-four address router and a device for managing the under-hanging device thereof, which are used for implementing the above methods, and as shown in fig. 16, the present invention is a schematic diagram of a device architecture in an embodiment of the present invention. The three-four address router and its under-hanging device management apparatus of the present embodiment include one or more processors 21 and a memory 22. In fig. 16, one processor 21 is taken as an example.
The processor 21 and the memory 22 may be connected by a bus or other means, and fig. 16 illustrates the connection by a bus as an example.
The memory 22, as a nonvolatile computer-readable storage medium for a three-four address router and an off-hook device management method thereof, may be used to store nonvolatile software programs, nonvolatile computer-executable programs, and modules, such as the three-four address router and the off-hook device management method thereof in embodiments 1 and 2. The processor 21 executes various functional applications and data processing of the three-four address router and the off-hook device management apparatus by running the nonvolatile software program, instructions and modules stored in the memory 22, that is, implements the three-four address router and the off-hook device management method of embodiments 1 and 2.
The memory 22 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 22 may optionally include memory located remotely from the processor 21, and these remote memories may be connected to the processor 21 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions/modules are stored in the memory 22, and when executed by the one or more processors 21, perform the three-four address router and its under-hanging device management method in the above-described embodiments 1 and 2, for example, perform the steps shown in fig. 4 to 8 described above.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the embodiments may be implemented by associated hardware as instructed by a program, which may be stored on a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A three-four address router and an under-hanging device management method thereof are characterized by comprising a plurality of items in a configuration protocol message, a network address table, an MAC table and a bridge address table, wherein the configuration protocol message comprises an MAC address and an IP address;
acquiring a configuration protocol message, and if the same MAC address is not matched in a network bridge address table according to the configuration protocol message, matching different MAC addresses in a network address table according to the IP address of the configuration protocol message;
if different MAC addresses are matched in a network address table according to the IP address of the configuration protocol message, updating the MAC address in the configuration protocol message to a row record corresponding to the different MAC addresses matched in the network address table;
and if different MAC addresses matched in the network address table according to the IP address of the configuration protocol message are matched with the same MAC address in the MAC table, acquiring an access port corresponding to the same MAC address matched in the MAC table so as to identify the equipment.
2. The method for managing a triple-quad address router and an off-hook device thereof according to claim 1, wherein if the same MAC address is matched in a bridge address table according to the configuration protocol message, the method specifically comprises:
the bridge address table includes MAC addresses and access ports;
matching the MAC address in the network bridge address table according to the MAC address in the configuration protocol message;
and if the same MAC address is matched in the bridge address table according to the MAC address of the configuration protocol message, acquiring an access port in the row record corresponding to the MAC address in the matched bridge address table so as to identify the equipment.
3. The method for managing a triple-quad address router and an under-hook device thereof according to claim 1, wherein the matching of different MAC addresses in a network address table according to the IP address of the configuration protocol message specifically comprises:
judging whether a current network address table contains a row record which is the same as the IP address of the configuration protocol message or not according to the IP address of the configuration protocol message;
if the current network address table contains the row record which is the same as the IP address of the configuration protocol message, judging whether the MAC address of the configuration protocol message is the same as the MAC address corresponding to the row record which is the same as the IP address of the configuration protocol message in the network address table;
if not, matching different MAC addresses in a network address table according to the IP address of the configuration protocol message.
4. The method of claim 3, wherein if the current network address table does not contain a row record that is the same as the IP address of the configuration protocol message, the configuration protocol message is stored in the current network address table.
5. The three-four address router and the method for managing the under-hanging device thereof according to claim 1, further comprising an address resolution protocol message, wherein the address resolution protocol message comprises a MAC address and an IP address;
acquiring an address resolution protocol message;
judging whether a current network address table contains a row record which is the same as the IP address of the address resolution protocol message or not according to the IP address of the address resolution protocol message;
if the current network address table contains the row record which is the same as the IP address of the address resolution protocol message, judging whether the MAC address of the address resolution protocol message is the same as the MAC address corresponding to the row record which is the same as the IP address of the address resolution protocol message in the network address table;
if not, updating the MAC address in the address resolution protocol message to a row record corresponding to different matched MAC addresses in a network address table;
and if the same MAC address is matched in the MAC table according to the MAC address of the address resolution protocol message, acquiring an access port corresponding to the same MAC address matched in the MAC table so as to identify the equipment.
6. The method of claim 5, wherein if the MAC address of the ARP message is not matched with the same MAC address in a MAC table, the method waits for updating the MAC table.
7. The method of claim 5, wherein if the current network address table does not contain a row record that is the same as the IP address of the ARP message, the ARP message is stored in the current network address table.
8. The three-four address router and its drop device management method according to claim 1, further comprising MAC message, wherein the MAC message includes MAC address and access port:
acquiring MAC information, and updating the MAC information into an MAC table;
judging whether a current network address table contains a row record which is the same as the MAC address of the MAC message or not according to the MAC address of the MAC message;
if the current network address table contains the row record which is the same as the MAC address of the MAC message, judging whether the row record which is the same as the MAC address of the MAC message in the current network address table contains the MAC address which is different from the MAC address of the MAC message, and if so, identifying the equipment.
9. The method of claim 1, wherein if a different MAC address matched in a network address table according to the IP address of the configuration protocol message does not match the same MAC address in the MAC table, the method waits for an update of the MAC table.
10. A three-four address router and its under-hanging device management device, characterized by that, include at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions programmed to perform the method of any of claims 1-9 for on-hook device management.
CN202110788995.2A 2021-07-13 2021-07-13 Three-four address router and method and device for managing down-hanging equipment thereof Active CN113452616B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110788995.2A CN113452616B (en) 2021-07-13 2021-07-13 Three-four address router and method and device for managing down-hanging equipment thereof
PCT/CN2022/098585 WO2023284467A1 (en) 2021-07-13 2022-06-14 Method and apparatus for managing three/four-address router and attach device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110788995.2A CN113452616B (en) 2021-07-13 2021-07-13 Three-four address router and method and device for managing down-hanging equipment thereof

Publications (2)

Publication Number Publication Date
CN113452616A true CN113452616A (en) 2021-09-28
CN113452616B CN113452616B (en) 2022-04-19

Family

ID=77816035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110788995.2A Active CN113452616B (en) 2021-07-13 2021-07-13 Three-four address router and method and device for managing down-hanging equipment thereof

Country Status (2)

Country Link
CN (1) CN113452616B (en)
WO (1) WO2023284467A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023284467A1 (en) * 2021-07-13 2023-01-19 烽火通信科技股份有限公司 Method and apparatus for managing three/four-address router and attach device thereof

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223494A1 (en) * 2006-03-21 2007-09-27 Nokia Corporation Method for the resolution of addresses in a communication system
US20090190515A1 (en) * 2008-01-25 2009-07-30 Finn Norman W Bridging wireless and wired media in a computer network
US20120051346A1 (en) * 2010-08-24 2012-03-01 Quantenna Communications, Inc. 3-address mode bridging
CN103685588A (en) * 2012-09-10 2014-03-26 中兴通讯股份有限公司 Bridge packet forwarding method and device for wireless network equipment in client mode
CN105493563A (en) * 2013-08-30 2016-04-13 华为技术有限公司 Data packet header encapsulation method, data packet header decapsulation method, apparatus and device
CN109068338A (en) * 2018-06-20 2018-12-21 四川斐讯全智信息技术有限公司 A kind of system and method for detection and three address wireless distribution system compatibility of processing
CN112787960A (en) * 2020-11-30 2021-05-11 北京东土军悦科技有限公司 Stack splitting processing method, device and equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577738B (en) * 2009-06-25 2011-08-31 杭州华三通信技术有限公司 Address distribution method and equipment thereof
CN107257393A (en) * 2017-06-29 2017-10-17 捷开通讯(深圳)有限公司 Acquisition methods, device and the computer-readable recording medium of internet protocol address
CN110519403A (en) * 2019-07-30 2019-11-29 烽火通信科技股份有限公司 A kind of gateway down-hanging device management method and system
CN113452616B (en) * 2021-07-13 2022-04-19 烽火通信科技股份有限公司 Three-four address router and method and device for managing down-hanging equipment thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070223494A1 (en) * 2006-03-21 2007-09-27 Nokia Corporation Method for the resolution of addresses in a communication system
US20090190515A1 (en) * 2008-01-25 2009-07-30 Finn Norman W Bridging wireless and wired media in a computer network
US20120051346A1 (en) * 2010-08-24 2012-03-01 Quantenna Communications, Inc. 3-address mode bridging
CN103685588A (en) * 2012-09-10 2014-03-26 中兴通讯股份有限公司 Bridge packet forwarding method and device for wireless network equipment in client mode
CN105493563A (en) * 2013-08-30 2016-04-13 华为技术有限公司 Data packet header encapsulation method, data packet header decapsulation method, apparatus and device
CN109068338A (en) * 2018-06-20 2018-12-21 四川斐讯全智信息技术有限公司 A kind of system and method for detection and three address wireless distribution system compatibility of processing
CN112787960A (en) * 2020-11-30 2021-05-11 北京东土军悦科技有限公司 Stack splitting processing method, device and equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023284467A1 (en) * 2021-07-13 2023-01-19 烽火通信科技股份有限公司 Method and apparatus for managing three/four-address router and attach device thereof

Also Published As

Publication number Publication date
WO2023284467A1 (en) 2023-01-19
CN113452616B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
US7496052B2 (en) Automatic VLAN ID discovery for ethernet ports
KR101502263B1 (en) Addressing scheme for hybrid communication networks
CN1194512C (en) Information equipment, gate way equipment and control method thereof
CN112422393B (en) Method for transmitting message of extensible virtual local area network, computer equipment and readable medium
CN104935516B (en) Communication system and method based on software defined network
US9264362B2 (en) Proxy address resolution protocol on a controller device
EP3319278A1 (en) Method and apparatus for implementing service function chain
CN107579900B (en) Method, device and system for accessing VX L AN network from V L AN network
US9641352B2 (en) Packet forwarding
EP2860918A1 (en) Message processing method and system in multi-homing access overlay network
CN110460684B (en) Broadcast domain isolation method and device for VXLAN (virtual extensible local area network) in same network segment
CN114124618B (en) Message transmission method and electronic equipment
CN109412927B (en) Multi-VPN data transmission method and device and network equipment
JP2019521619A (en) Packet forwarding
CN110545229B (en) Message sending method and device in VXLAN axis networking mode
CN107659484B (en) Method, device and system for accessing VXLAN network from VLAN network
CN107547344B (en) VXLAN message processing method and device
CN1668030B (en) System and a method for processing field frames for multiprotocol use in a communications, and network equipment
CN113452616B (en) Three-four address router and method and device for managing down-hanging equipment thereof
CN107547340A (en) A kind of message forwarding method and device
CN113301667A (en) Message forwarding method and device
CN110224942B (en) Message processing method, device and storage medium
CN115955517B (en) Message processing method and system
CN115865844B (en) Virtual-real combined dynamic flow scheduling method and device based on SDN (software defined network) and NDN (non-dynamic network)
CN108259350B (en) Message transmission method and device and machine-readable storage medium

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