Communication device and communication method
The described communication device maintains MAC address filtering functionality by updating registered MAC addresses, ensuring continuous communication despite random changes, using a storage unit, communication unit, and MAC filter control unit.
Patent Information
- Application Number
- JP2023028366
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-02-27
AI Technical Summary
The MAC address randomization function in communication devices prevents data reception from devices with registered MAC addresses, disrupting communication.
A communication device with a storage unit for registered MAC addresses and MAC filtering information, a communication unit for packet reception, and a MAC filter control unit for updating MAC addresses, enabling continued data reception even with randomly changed MAC addresses.
Enables continuous communication with devices having randomly changed MAC addresses by updating the registered MAC addresses, maintaining the MAC address filtering function's effectiveness.
Smart Images

Figure 2024121326000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a communication device and a communication method. [Background technology]
[0002] A communication device is in use that is provided with a MAC address filtering function that performs filtering using a MAC address, thereby permitting communication of a communication device that uses a registered MAC address (see, for example, Patent Document 1).
[0003] Furthermore, in order to improve security performance, communication devices equipped with a MAC address randomization function that randomly changes the MAC address of the communication device have come to be used in recent years. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2014-127838 A Summary of the Invention [Problem to be solved by the invention]
[0005] However, if a MAC address that has been registered to allow communication is changed by the MAC address randomization function, it will no longer be possible to receive data from the communication device that has registered the MAC address.
[0006] Therefore, one or more aspects of the present disclosure aim to enable a MAC address filtering function to receive data from a communication device with a registered MAC address even if the MAC address is randomly changed. [Means for solving the problem]
[0007] A communication device according to one embodiment of the present disclosure is characterized in that it comprises a memory unit that stores a registered MAC address, which is the MAC address of a communication device that is permitted to communicate, and MAC filtering registration information indicating identification information of the communication device; a communication unit that receives communication packets from a network; a MAC filter processing unit that refers to the MAC filtering registration information and performs filtering based on whether the source MAC address of the communication packet matches the registered MAC address; and a MAC filter control unit that updates the registered MAC address using the identification information.
[0008] A communication method according to one embodiment of the present disclosure is characterized in that it receives a communication packet from a network, refers to a registered MAC address, which is the MAC address of a communication device that is permitted to communicate, and MAC filtering registration information indicating identification information of the communication device, performs filtering based on whether the source MAC address of the communication packet matches the registered MAC address, and updates the registered MAC address using the identification information. Effect of the Invention
[0009] According to one or more aspects of the present disclosure, even if the MAC address is randomly changed, the MAC address filtering function makes it possible to receive data from a communication device in which the MAC address is registered. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a block diagram showing an example of a connection configuration of a communication system. [Diagram 2] 1 is a block diagram illustrating a schematic configuration of an image forming apparatus according to an embodiment. [Diagram 3] FIG. 11 is a schematic diagram illustrating an example of MAC filtering registration information. [Figure 4] FIG. 2 is a block diagram illustrating a schematic configuration of a communication unit and a control unit. [Diagram 5] FIG. 1 is a schematic diagram for explaining the specifications of a random MAC address. [Figure 6]FIG. 13 is a schematic diagram illustrating an example of a notification screen. [Figure 7] 1A and 1B are block diagrams illustrating an example of a hardware configuration. [Figure 8] 13 is a flowchart of a process performed by the MAC filter processor when the MAC filter processor receives a communication packet from the IP communication processor. [Figure 9] 10 is a flowchart showing an operation of a MAC filter control unit when a MAC address of a source of a communication packet is stored in a temporary storage unit. [Figure 10] 13 is a flowchart showing the operation of the MAC filter processor that receives a communication packet from the IP communication processor after the NBNS query transmission process has been performed. [Figure 11] FIG. 2 is a schematic diagram for explaining a structure of a communication packet. [Figure 12] 13 is a flowchart showing an operation of a MAC filter control unit when data is provided from a socket communication processing unit to the MAC filter control unit. [Figure 13] 11 is a schematic diagram showing an example of updating MAC filtering registration information. [Figure 14] This is a sequence diagram showing communication between a communication device and an image forming device when the MAC address of the communication device is registered in MAC filtering registration information, the MAC address is randomly changed, and a print request is made to the image forming device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] FIG. 1 is a block diagram showing an example of a connection configuration of a communication system 100 including an image forming apparatus 110 according to an embodiment. The communication system 100 includes an image forming device 110, a communication device 130A, and a communication device 130B. Here, the image forming device 110 functions as a communication device.
[0012] The image forming device 110 , the communication device 130 A, and the communication device 130 B are connected to the same network 101 . Furthermore, the image forming apparatus 110 has a MAC address filtering function. Communications device 130A has setting information 131A for performing communications, and communications device 130B has setting information 131B for performing communications. In the following description, when there is no need to particularly distinguish between communication device 130A and communication device 130B, each of communication device 130A and communication device 130B will be referred to as communication device 130. Furthermore, although two communication devices 130 are shown in FIG. 1, the number of communication devices 130 is not limited to two, and the communication system 100 may include three or more communication devices.
[0013] The setting information 131A includes the MAC address and NetBIOS name of the communication device 130A. Setting information 131B includes the MAC address and NetBIOS name of communication device 130B. Here, the MAC address of the communication device 130 is not a unique value, but has the characteristic of being changed randomly by a known technology. The timing at which the MAC address is changed varies depending on the OS (Operating System) or the manufacturer of the communication device 130. For example, there is a communication device 130 that randomly changes its MAC address every 24 hours. Hereinafter, a MAC address that has the property of being randomly changed will be referred to as a random MAC address.
[0014] FIG. 2 is a block diagram showing a schematic configuration of an image forming apparatus 110 according to the embodiment. The image forming apparatus 110 includes a communication unit 111 , a storage unit 112 , a display unit 115 , an input unit 116 , an image forming unit 117 , and a control unit 118 .
[0015] A communication unit 111 performs communication via the network 101 wirelessly or via wired communication. For example, the communication unit 111 receives a communication packet from the network 101. The communication unit 111 also transmits an NBNS (NetBIOS Naming Service) query, which is a request using a NetBIOS name, to the network 101. The communication unit 111 also receives an NBNS reply, which is a response to the NBNS query, from the network 101.
[0016] The storage unit 112 stores information necessary for processing in the image forming apparatus 110 . Here, the storage unit 112 includes a MAC filtering registration information storage unit 113 and a temporary storage unit 114.
[0017] The MAC filtering registration information storage unit 113 stores the MAC filtering registration information. FIG. 3 is a schematic diagram illustrating an example of the MAC filtering registration information. The MAC filtering registration information 113a shown in FIG. 3 is information in a table format having a number column 113b, a MAC address column 113c, a NetBIOS column 113d, and a denial flag column 113e.
[0018] The number column 113b stores an identification number for identifying each row. The MAC address column 113c registers the MAC address of the communication device 130 that receives data. Here, the MAC address registered in the MAC filtering registration information is also referred to as a registered MAC address.
[0019] NetBIOS column 113d stores a NetBIOS name. Here, the NetBIOS name is stored when the MAC address registered in MAC address column 113c in the same row is a randomly changed MAC address and the user of communication device 130 having the MAC address registered in MAC address column 113c in the same row allows the use of the NetBIOS name.
[0020] The refusal flag column 113e stores ON as a refusal flag indicating that use of a NetBIOS name has been denied when a user of the communication device 130 having a MAC address registered in the MAC address column 113c of the same row has denied use of the NetBIOS name. In Fig. 3, no such flag is stored, so the refusal flag column 113e is blank.
[0021] As described above, MAC filtering registration information 113a indicates the registered MAC addresses, which are the MAC addresses of communication devices 130 for which communication is permitted, and the NetBIOS names, which are the identification information of those communication devices 130. Furthermore, MAC filtering registration information 113a also indicates a refusal flag, which is information indicating whether or not use of the NetBIOS name, which is the identification information of communication device 130, is permitted.
[0022] Returning to FIG. 2, temporary storage unit 114 temporarily stores a MAC address for use in the initial registration of a NetBIOS name or in updating a MAC address.
[0023] The display unit 115 displays various screens. For example, the display unit 115 displays the status of the image forming apparatus 110 to the user. The input unit 116 accepts input of various instructions, such as values for the user to form an image, a MAC address to be registered, and the like. The image forming unit 117 is a printing unit that forms an image on a medium. The control unit 118 controls the processing in the image forming apparatus 110 .
[0024] FIG. 4 is a block diagram showing a schematic configuration of communication unit 111 and control unit 118. As shown in FIG. According to the TCP / IP (Transmission Control Protocol / Internet Protocol) layered structure when performing communication, the communication unit 111 performs processing as a network interface layer, and the control unit 118 performs processing as an internet layer, a transport layer, and an application layer.
[0025] The control unit 118 includes an IP communication processing unit 119 that performs processing of the internet layer, a MAC filter processing unit 120 that is arranged between the internet layer and the transport layer, a socket communication processing unit 121 that performs processing of the transport layer, and a MAC filter control unit 122 that is included in the application layer.
[0026] The MAC filter control unit 122 receives, via the display unit 115 and the input unit 116, an input of a MAC address to be registered in the MAC filtering registration information. Then, the MAC filter control unit 122 judges whether or not the input MAC address is a random MAC address.
[0027] Furthermore, the MAC filter control unit 122 uses the NetBIOS name, which is the identification information of the communication device 130, to update the registered MAC address, which is the MAC address registered in the MAC filtering registration information. Here, the MAC filter control unit 122 updates the registered MAC address if the registered MAC address is a random MAC address and the user of the communication device 130 has permitted the use of the NetBIOS name. Note that the MAC filter control unit 122 may update the registered MAC address when the registered MAC address is a random MAC address, without requiring the user of the communication device 130 to give permission to use the NetBIOS name.
[0028] FIG. 5 is a schematic diagram for explaining the specifications of the random MAC address. The first octet of the MAC address defines the "G / L bit" and the "I / G bit". If the MAC address is unique to the device rather than a random MAC address, these bits are set to "0" and "0" respectively. In contrast, in a random MAC address, the I / G bit is defined as "0" and the G / L bit is defined as "1".
[0029] As shown in Figure 5, the first octet is expressed in binary as "b7", "b6", "b5", "b4", "b3", "b2", "b1", and "b0". When this first octet is expressed in hexadecimal, the first character is "b7", "b6", "b5", and "b4", and the second character is "b3", "b2", "b1", and "b0".
[0030] The "G / L bit" and "I / G bit" correspond to the second characters "b1" and "b0", respectively, and are defined as "01" as above. Therefore, depending on the combination of the remaining two bits of the second character, the second character of the first octet can be "0010", "0110", "1010", or "1110". When converted to hexadecimal, this second character becomes "2", "6", "A", or "E". From the above, if the second character of the first octet is "2," "6," "A," or "E," the MAC address can be determined to be a random MAC address.
[0031] 4, when the input MAC address is a random MAC address, MAC filter control unit 122 displays a notification screen on display unit 115 to notify the user that the registered MAC address will be randomly changed, communication may be rejected due to MAC address filtering, and that the rejection of communication can be avoided by registering a NetBIOS name. MAC filter control unit 122 then receives an input of an instruction as to whether or not to use a NetBIOS name from the user via input unit 116.
[0032] For example, the MAC filter control unit 122 causes the display unit 115 to display a notification screen 102 as shown in FIG. Then, when the user inputs an execution instruction via input unit 116 selecting registration input area 102a, MAC filter control unit 122 determines that the user has permitted use of the NetBIOS name, and when the user inputs an execution instruction selecting refusal input area 102b, MAC filter control unit 122 determines that the user has refused use of the NetBIOS name. In addition, as described above, if a user rejects the use of the NetBIOS name, the MAC filter control unit 122 stores the rejection flag "ON" in the distance flag column of the row that stores the registered MAC address in the registration filtering registration information.
[0033] When a new MAC address is registered in the MAC filtering registration information, the NetBIOS name of the communication device 130 using that MAC address is not registered in the MAC filtering registration information. The MAC filter control unit 122 obtains the NetBIOS name from the communication packet when the communication device 130 joins the network 101, and registers it in the MAC filtering registration information. This process will be described later.
[0034] In other words, the MAC filtering registration information includes a NetBIOS name if the registered MAC address is a random MAC address and the user of the communication device 130 has permitted the use of the NetBIOS name. It is also possible to dispense with the need for user permission to use the NetBIOS name, in which case the MAC filtering registration information includes the NetBIOS name if the registered MAC address is a random MAC address.
[0035] Furthermore, the MAC filter control unit 122 updates the registered MAC addresses. For example, the MAC filter control unit 122 sends a request using a NetBIOS name to the network 101 via the communication unit 111, and receives a response to the request via the communication unit 111, thereby obtaining a randomly changed MAC address to update the registered MAC address. For example, when a source MAC address is temporarily stored in temporary storage unit 114, MAC filter control unit 122 sends the request to network 101 via communication unit 111. As will be described later, when the source MAC address of a communication packet does not match a registered MAC address and is a random MAC address, MAC filter processing unit 120 temporarily stores the source MAC address in temporary storage unit 114. Then, when the MAC address acquired as described above matches the source MAC address temporarily stored in the temporary storage unit 114, the MAC filter control unit 122 replaces the registered MAC address with the source MAC address temporarily stored in the temporary storage unit 114.
[0036] The communication unit 111 transmits and receives communication packets. The communication unit 111 includes a physical device unit 111a and a driver unit 111b.
[0037] The physical device unit 111a transmits and receives communication packet signals to and from the network 101. For example, the physical device unit 111a converts a communication packet including an Ethernet header processed by the driver unit 111b into a signal and transmits it to the network 101. In addition, the physical device unit 111a converts a signal received from the network 101 into a communication packet.
[0038] The driver unit 111b processes the Ethernet header portion of the communication packet. For example, the driver unit 111b generates a communication packet by adding an Ethernet header to an IP packet from the IP communication processing unit 119, and provides the communication packet to the physical device unit 111a. The driver unit 111b also processes the Ethernet header of the communication packet from the physical device unit 111a, and provides the communication packet with the Ethernet header still attached to the IP communication processing unit 119.
[0039] The IP communication processing unit 119 processes the IP header portion. For example, the IP communication processing unit 119 generates an IP packet by adding an IP header to a packet from the socket communication processing unit 121, and provides the IP packet to the communication unit 111. The IP communication processing unit 119 also processes the IP header included in the communication packet from the communication unit 111, and provides the communication packet with the IP header still added to the MAC filter processing unit 120.
[0040] The MAC filter processing unit 120 receives a communication packet from the IP communication processing unit 119, and performs MAC filtering by referring to the MAC filtering registration information stored in the MAC filtering registration information storage unit 113. For example, the MAC filter processing unit 120 performs filtering by referring to the MAC filtering registration information and determining whether the source MAC address of the communication packet matches a registered MAC address. The processing performed here will be described later.
[0041] For a communication packet containing a source MAC address for which communication is permitted by MAC filtering, the MAC filter processor 120 provides the portion of the packet excluding the Ethernet header and IP header to the socket communication processor 121.
[0042] The socket communication processing unit 121 processes the header portion of the packet in accordance with the transport layer protocol. For example, the socket communication processing unit 121 generates a packet by adding a header in accordance with the transport layer protocol to data from the application layer, and provides the packet to the IP communication processing unit 119. The socket communication processing unit 121 also processes the header included in the packet from the MAC filter processing unit 120, and provides the data portion included in the payload excluding the packet to the application layer.
[0043] A part or the whole of the control unit 118 described above can be configured, for example, as shown in Fig. 7(A), by a memory 10 and a processor 11 such as a CPU (Central Processing Unit) that executes a program stored in the memory 10. Such a program may be provided through a network, or may be provided by being recorded on a recording medium. That is, such a program may be provided, for example, as a program product.
[0044] In addition, a part or all of the control unit 118 may be configured with a processing circuit 12 such as a single circuit, a composite circuit, a processor operated by a program, a parallel processor operated by a program, an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array), for example, as shown in FIG. 7(B). As described above, the control unit 118 can be realized by a processing circuit network.
[0045] The communication unit 111 can be configured with a communication I / F (Interface) that performs communication via the network 101. The storage unit 112 can be configured with a storage device such as a non-volatile memory, a volatile memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0046] The display unit 115 can be configured with a display. The input unit 116 can be configured with an input I / F such as an input button. The display unit 115 and the input unit 116 may be configured as a touch panel.
[0047] FIG. 8 is a flowchart of the process performed by the MAC filter processor 120 when it receives a communication packet from the IP communication processor 119. The flowchart in FIG. 8 starts when the IP communication processing unit 119 receives a communication packet from the IP communication processing unit 119 .
[0048] First, as a filter for MAC addresses, the MAC filtering processor 120 determines (S10) whether or not a registered MAC address that matches the source MAC address of a received communication packet exists in the MAC filtering registration information stored in the MAC filtering registration information storage unit 113. If such a registered MAC address exists (Yes in S10), the process proceeds to step S11, and if such a registered MAC address does not exist (No in S10), the process proceeds to step S12.
[0049] In step S 11 , the MAC filter processing unit 120 passes the communication packet to the socket communication processing unit 121 because the received communication packet is a communication packet from the communication device 130 for which communication is permitted.
[0050] In step S12, the MAC filter processor 120 determines whether the source MAC address of the received communication packet is a random MAC address. If the source MAC address is a random MAC address (Yes in S12), the process proceeds to step S13, and if the source MAC address is not a random MAC address (No in S12), the process proceeds to step S14.
[0051] In step S13, the MAC filter processing unit 120 stores the source MAC address determined to be a random MAC address in the temporary storage unit 114 in order to notify the MAC filter control unit 122 of the source MAC address. Then, the MAC filter processing unit 120 discards the communication packet.
[0052] On the other hand, in step S14, since the source MAC address is not a random MAC address but a device-specific MAC address and the communication packet is from communication device 130 with which communication is not permitted, the MAC filter processing unit 120 discards the communication packet without passing it to the socket communication processing unit 121.
[0053] FIG. 9 is a flowchart showing the operation of the MAC filter control unit 122 when the source MAC address of a communication packet is stored in the temporary storage unit 114 in step S13 of FIG. The flowchart in FIG. 9 starts when the MAC filter control unit 122, which is monitoring the temporary storage unit 114, detects that a MAC address has been stored in the temporary storage unit 114.
[0054] The MAC filter control unit 122 sends an NBNS query, which is a name resolution request packet using the NetBIOS name via the NBT (NetBIOS over TCP / IP) protocol, to all NetBIOS names registered in the MAC filtering registration information stored in the MAC filtering registration information memory unit 113 (S20).
[0055] FIG. 10 is a flowchart showing the operation of the MAC filter processor 120 that receives a communication packet from the IP communication processor 119 after the NBNS query transmission process in step S20 in FIG. The flowchart in FIG. 10 starts when the MAC filter processor 120 receives a communication packet from the IP communication processor 119 .
[0056] First, the MAC filter processing unit 120 identifies the protocol used in a communication packet received from the IP communication processing unit 119, and judges whether or not the communication packet is an NBNS packet (S30). If the communication packet is an NBNS packet (Yes in S30), the process proceeds to step S31, and if the communication packet is not an NBNS packet (No in S30), the process proceeds to step S10 in FIG.
[0057] FIG. 11 is a schematic diagram for explaining the structure of a communication packet. A communication packet includes an Ethernet header, an IP header, and a TCP / UDP header, and if the communication packet is an NBNS packet, the communication packet includes an NBT header.
[0058] Here, the MAC filter processor 120 can identify the protocol by referring to the destination port number in the TCP / UDP header. If the destination port number is "137", the communication packet is an NBNS packet that uses the NBT protocol.
[0059] Returning to Fig. 10, in step S31, the MAC filter processing unit 120 determines whether or not the source MAC address of the received communication packet matches the source MAC address temporarily stored in the temporary storage unit 114 in step S13 of Fig. 8. If they do not match (No in S31), the process proceeds to step S32, and if they match (Yes in S31), the process proceeds to step S33.
[0060] In step S32, since the received communication packet (here, an NBNS packet) is not a communication packet from the communication device 130 being searched for, the MAC filter processing unit 120 discards the communication packet without passing it to the socket communication processing unit 121 for further processing.
[0061] On the other hand, in step S 33 , the MAC filter processing unit 120 changes the destination port number in the TCP / UDP header of the received communication packet so that the communication packet can be delivered to the MAC filter control unit 122 .
[0062] Then, the MAC filter processing unit 120 generates a packet by removing the Ethernet header and the IP header from the communication packet, and provides the packet to the socket communication processing unit 121 (S34). Note that the socket communication processing unit 121 processes the header included in the packet from the MAC filter processing unit 120, and delivers the data included in the payload excluding the packet to the MAC filter control unit 122.
[0063] FIG. 12 is a flowchart showing the operation of MAC filter control section 122 when data is provided from socket communication processing section 121 to MAC filter control section 122 after the process of step S34 in FIG. The flowchart shown in FIG. 12 starts when the MAC filter control unit 122 receives data from the socket communication processing unit 121.
[0064] First, the MAC filter control unit 122 analyzes the received data and extracts the NetBIOS name of the reply source of the NBNS communication (S40).
[0065] Next, the MAC filter control unit 122 searches the MAC filtering registration information stored in the MAC filtering registration information storage unit 113 using the extracted NetBIOS name as a key, and determines whether or not a matching NetBIOS name is registered (S41). If a matching NetBIOS name is registered (Yes in S41), the process proceeds to step S42, and if a matching NetBIOS name is not registered (No in S41), the process proceeds to step S44.
[0066] In step S42, MAC filter control unit 122 updates the MAC address associated with the matching NetBIOS name in the MAC filtering registration information to the source MAC address stored in temporary storage unit 114. Then, the MAC filter control unit 122 deletes the source MAC address stored in the temporary storage unit 114 (S43).
[0067] On the other hand, in step S44 and thereafter, the MAC filter control unit 122 performs an initial registration process of a NetBIOS name. First, in step S44, the MAC filter control unit 122 obtains the source MAC address stored in the temporary storage unit 114.
[0068] Then, the MAC filter control unit 122 judges whether or not there is a registered MAC address that matches the MAC address of the sender in the MAC filtering registration information stored in the MAC filtering registration information storage unit 113 (S45). If such a registered MAC address exists (Yes in S45), the process proceeds to step S46. If such a registered MAC address does not exist (No in S45), the MAC filtering registration information cannot be updated, and the process ends.
[0069] In step S46, the MAC filter control unit 122 judges whether or not the denial flag of the NetBIOS name associated with the registered MAC address matched in step S45 in the MAC filtering registration information is ON. If the denial flag is not ON (No in S46), the use of the NetBIOS name is permitted by the user, and the process proceeds to step S47. If the denial flag is ON (Yes in S46), the use of the NetBIOS name is denied by the user, and the process proceeds to step S48.
[0070] In step S47, the MAC filter control unit 122 registers the NetBIOS name extracted in step S40 in the MAC filtering registration information in association with the registered MAC address matched in step S45. Then, the process proceeds to step S48.
[0071] In step S48, the MAC filter control unit 122 deletes the source MAC address stored in the temporary storage unit 114.
[0072] For example, when the MAC filtering registration information 113a shown in Fig. 3 is stored in the MAC filtering registration information storage unit 113, even if the random MAC address of the communications device 130A is changed from "A2-AA-AA-AA-AA-AA" to "C2-CC-CC-CC-CC-CC", the above operation updates the registered MAC address to "C2-CC-CC-CC-CC-CC" using the NetBIOS name of the communications device 130A, "PCAAAA", as in the MAC filtering registration information 113a# shown in Fig. 13. After this, the communications device 130A will be able to communicate with the image forming device 110 until the MAC address of the communications device 130A is changed again.
[0073] FIG. 14 is a sequence diagram showing communication between communication device 130A and image forming device 110 when the MAC address of communication device 130A is registered in the MAC filtering registration information, the MAC address of communication device 130A is randomly changed, and a print request is made to image forming device 110.
[0074] The communications device 130A transmits a TCP connection establishment request (S50) in order to exchange print data as image formation data with the image forming device 110. Here, the MAC address of the communications device 130A, which is the sender of the TCP connection establishment request, is a different MAC address from the registered MAC address registered in the MAC filtering registration information of the image forming device 110, since it has been randomly changed.
[0075] Therefore, the MAC filter processor 120 of the image forming apparatus 110 rejects the communication of the TCP connection establishment request (S51). The process of step S51 corresponds to the processes of steps S10 (No), S12, and S13 in FIG.
[0076] Then, the MAC filter control unit 122 of the image forming apparatus 110 transmits an NBNS query with the NetBIOS name of the MAC filtering registration information (S52). The process of step S52 corresponds to step S20 in FIG.
[0077] Communications device 130A responds to the NBNS query inquiring about its own NetBIOS name (S53). When such a reply is received, the MAC filter control unit 122 of the image forming apparatus 110 updates the MAC filtering registration information (S54). The processing here corresponds to steps S30 (Yes), S31, S33, and S34 in Fig. 10, and steps S40, S41, S42, and S43 in Fig. 12.
[0078] Since no response was received to the TCP connection establishment request in step S50, communications device 130A transmits a TCP connection establishment request again (S55).
[0079] At this time, the changed MAC address of communications device 130A is registered in the MAC filtering registration information of image forming device 110, so MAC filtering processor 120 does not reject the communication, and controller 118 of image forming device 110 returns an acknowledgement (S56). After that, general TCP communication and transmission and reception of print data are performed between communications device 130A and image forming device 110, and printing is performed (S57-S62).
[0080] According to the above embodiment, by using the NetBIOS name to identify communication device 130, even if the MAC address of communication device 130 is changed randomly, the MAC address registered in the MAC filtering registration information can be updated appropriately. This makes it possible to continue communication even if the MAC address is changed randomly. This makes it possible to take advantage of the widely available MAC address filtering capabilities even with randomly changing MAC addresses.
[0081] In the embodiment described above, the MAC address is updated using the NetBIOS name, but the embodiment is not limited to such an example. For example, the Bonjour host name may be used as the identification information. [Explanation of symbols]
[0082] 100 communication system, 110 image forming apparatus, 111 communication unit, 111a physical device unit, 111b driver unit, 112 memory unit, 115 display unit, 116 input unit, 117 image forming unit, 118 control unit, 119 IP communication processing unit, 120 MAC filter processing unit, 121 socket communication processing unit, 122 MAC filter control unit, 130 communication equipment.
Claims
1. a storage unit that stores registered MAC addresses, which are MAC addresses of communication devices that are permitted to communicate, and MAC filtering registration information indicating identification information of the communication devices; A communication unit that receives communication packets from a network; a MAC filter processor that refers to the MAC filtering registration information and performs filtering based on whether a source MAC address of the communication packet matches the registered MAC address; a MAC filter control unit that updates the registered MAC address by using the identification information. A communication device comprising:
2. The MAC filtering registration information includes the identification information when the registered MAC address is a random MAC address having a characteristic of being randomly changed, When the registered MAC address is the random MAC address, the MAC filter control unit updates the registered MAC address by using the identification information.
2. The communication device according to claim 1,
3. the MAC filtering registration information includes the identification information when the registered MAC address is a random MAC address having a characteristic of being randomly changed and a user of the communication device permits the use of the identification information; When the registered MAC address is the random MAC address, the MAC filter control unit updates the registered MAC address by using the identification information.
2. The communication device according to claim 1,
4. the MAC filter control unit transmits a request using the identification information to the network via the communication unit, and receives a response to the request via the communication unit, thereby acquiring a randomly changed MAC address in order to update the registered MAC address. A communication device according to any one of claims 1 to 3.
5. the MAC filtering processor temporarily stores the source MAC address in the storage unit when the source MAC address does not match the registered MAC address and is the random MAC address; The MAC filter control unit transmits the request to the network via the communication unit when the source MAC address is temporarily stored in the storage unit.
5. The communication device according to claim 4,
6. When the acquired MAC address matches the source MAC address temporarily stored in the storage unit, the MAC filter control unit replaces the registered MAC address with the source MAC address temporarily stored in the storage unit.
6. The communication device according to claim 5,
7. Receives communication packets from the network, by referring to a registered MAC address, which is a MAC address of a communication device that is permitted to communicate, and MAC filtering registration information indicating identification information of the communication device, filtering is performed based on whether or not a source MAC address of the communication packet matches the registered MAC address; updating the registered MAC address using the identification information; A communication method comprising:
8. The MAC filtering registration information includes the identification information when the registered MAC address is a random MAC address having a characteristic of being randomly changed, When the registered MAC address is the random MAC address, the registered MAC address is updated using the identification information.
8. The communication method according to claim 7, further comprising:
9. the MAC filtering registration information includes the identification information when the registered MAC address is a random MAC address having a characteristic of being randomly changed and a user of the communication device permits the use of the identification information; When the registered MAC address is the random MAC address, the registered MAC address is updated using the identification information.
8. The communication method according to claim 7, further comprising:
10. When updating the registered MAC address, a request using the identification information is sent to the network, and a response to the request is received, thereby obtaining a randomly changed MAC address.
9. A communication method according to claim 7, wherein:
11. If the source MAC address does not match the registered MAC address and is the random MAC address, the source MAC address is temporarily stored; The request is sent to the network when the source MAC address is temporarily stored. The communication method according to claim 10, characterized in that:
12. When the acquired MAC address matches the temporarily stored source MAC address, the registered MAC address is replaced with the temporarily stored source MAC address. The communication method according to claim 11 , characterized in that
Citation Information
Patent Citations
Relay device, relay method, and relay program
JP2022050946A
Information processing device
JP2014127838A
