WO2023273799A1 - 外接设备的通信方法、装置、电子设备和存储介质 - Google Patents

外接设备的通信方法、装置、电子设备和存储介质 Download PDF

Info

Publication number
WO2023273799A1
WO2023273799A1 PCT/CN2022/096990 CN2022096990W WO2023273799A1 WO 2023273799 A1 WO2023273799 A1 WO 2023273799A1 CN 2022096990 W CN2022096990 W CN 2022096990W WO 2023273799 A1 WO2023273799 A1 WO 2023273799A1
Authority
WO
WIPO (PCT)
Prior art keywords
external device
model data
address
internal
base station
Prior art date
Application number
PCT/CN2022/096990
Other languages
English (en)
French (fr)
Inventor
赵海飞
李露露
焦儒轩
吕凤
刘林松
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP22831620.4A priority Critical patent/EP4362402A1/en
Publication of WO2023273799A1 publication Critical patent/WO2023273799A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/30Managing network names, e.g. use of aliases or nicknames
    • H04L61/301Name conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Definitions

  • the embodiments of the present application relate to the communication field, and in particular to a communication method, device, electronic device, and storage medium for an external device.
  • IP Internet Protocol Address
  • the base station In order to realize the communication of the internal equipment in the base station and the user's monitoring and maintenance of each equipment in the base station, the base station will assign an internal IP address to the equipment in the base station through a private protocol, and the internal IP address is Not presented to the user.
  • Each device in the base station has established corresponding model data to present to the user, and the user can determine and maintain the device in the base station through the model data.
  • the base station often establishes the corresponding relationship between the internal IP address and the model data through a private protocol, so that when the base station receives the operation of the base station by the user through the model data, it can obtain the internal IP address of the device corresponding to the model data, and then realize the internal IP address of the base station. device communication.
  • the O-RAN Alliance proposes that future base station equipment will open software interfaces to support the interoperability of radio frequency equipment from different manufacturers, reduce dependence on private platforms, and improve network equipment access. flexibility. That is, the base station will also connect to external devices. When the base station is connected to external devices, the environment monitoring board of the base station will provide a serial port to connect with the external devices, so as to realize the monitoring and maintenance of the external devices.
  • the rate of the serial port is too slow to meet the information transmission requirements of the external device when the external device is connected through the serial port.
  • An embodiment of the present application provides a communication method for an external device, including: assigning an internal IP address to the connected external device; wherein, the external device is connected to the base station through the Ethernet interface of the destination device; the internal IP address In the corresponding relationship with the Ethernet interface, search for the Ethernet interface corresponding to the assigned internal IP address; determine the destination device information corresponding to the destination device to which the found Ethernet interface belongs; in the model data of each external device , searching for model data including the information of the destination device, and establishing a correspondence between the found model data and the assigned internal IP address; wherein, the model data is used to identify the external device; The internal IP address corresponding to the model data communicates with the external device identified by the model data.
  • the embodiment of the present application also provides a communication device for an external device, including: an allocation module, configured to allocate an internal IP address for the connected external device; wherein, the external device communicates with the base station through the Ethernet interface of the destination device connection; a search module, configured to search for the Ethernet interface corresponding to the assigned internal IP address in the correspondence between the internal IP address and the Ethernet interface; determine the corresponding destination device to which the found Ethernet interface belongs Target device information; in the model data of each external device, search for the model data including the target device information, and establish the corresponding relationship between the found model data and the assigned internal IP address; wherein, the model The data is used to identify the external device; the communication module is used to communicate with the external device identified by the model data through the internal IP address corresponding to the model data.
  • the embodiment of the present application also provides an electronic device, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores information that can be executed by the at least one processor. Instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute the communication method of the above-mentioned external device.
  • the embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, implements the above-mentioned communication method for an external device.
  • FIG. 1 is a flowchart of a communication method for an external device provided according to an embodiment of the present application
  • Fig. 2 is a schematic diagram of a model data configuration interface of a device provided according to an embodiment of the present application
  • Fig. 3 is a schematic diagram of communication connections of external devices, base stations, and network management provided according to an embodiment of the present application;
  • Fig. 4 is a flow chart of modifying username and password according to an embodiment of the present application.
  • Fig. 5 is a schematic diagram of a communication device of an external device provided according to an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of an electronic device provided according to an embodiment of the present application.
  • the main purpose of the embodiments of the present application is to propose a communication method, device, electronic device, and storage medium for an external device, which can increase the communication rate between the external device and the base station, meet the information transmission requirements of the external device, and facilitate the operation and maintenance of the external device .
  • This embodiment provides a communication method for an external device, which can be applied to a base station.
  • the communication method for an external device in this embodiment includes: assigning an internal IP address to the connected external device; The network interface is connected to the base station; in the corresponding relationship between the internal IP address and the Ethernet interface, search for the Ethernet interface corresponding to the assigned internal IP address; determine the corresponding destination device to which the found Ethernet interface belongs The destination device information; in the model data of each external device, search for the model data including the destination device information, and establish the corresponding relationship between the found model data and the assigned internal IP address; wherein, the The model data is used to identify the external device; communicate with the external device identified by the model data through the internal IP address corresponding to the model data.
  • this embodiment Compared with connecting the external device to the base station through the serial port, this embodiment connects the interface through the Ethernet, and the data transmission speed is higher.
  • the embodiment of the present application allocates an internal IP address to the external device, which does not occupy a public IP address and saves operation.
  • Commercially available IP address resources are used.
  • the model data of the external device is determined through the correspondence between the Ethernet interface and the information of the destination device, thereby realizing the internal IP address of the external device and the
  • the corresponding relationship of model data enables users to identify the IP address corresponding to the model data when they need to operate and maintain the external device through the model data, and then communicate with the external device.
  • the internal IP address can be realized without adding information to the model data.
  • the corresponding relationship between the address and the model data of the external device enables the allocation of internal IP addresses and the internal
  • the binding of IP address and model data makes it possible to communicate with external devices through Ethernet, which facilitates the operation and maintenance of external devices.
  • Step 101 assign an internal IP address to the connected external device.
  • the external device is connected to the base station through the Ethernet interface of the destination device.
  • the base station can use Dynamic Host Configuration Protocol (DHCP) to assign internal IP addresses to external devices.
  • DHCP Dynamic Host Configuration Protocol
  • Internal IP addresses are private IP addresses.
  • the external device is an external device connected to the base station for management, such as an embedded power supply, which is not limited in this embodiment.
  • the destination device can be a device in the base station, which can transparently transmit the data of the external device to the base station, and transparently transmit the data of the base station to the external device. destination device.
  • FIG. 2 is a schematic diagram of a user interface provided by the network management system.
  • the user can configure the model data of the external device according to the base station device model.
  • the device model can include the access device's Equipment model, destination equipment, data processing method, communication method, model data identification, etc.
  • the data processing methods include analysis mode, transparent transmission mode, etc.
  • the communication methods include network port communication, serial port communication, etc.
  • the data processing mode can be configured as analysis mode
  • the communication mode can be configured as network port communication.
  • the user can Configure as required.
  • the destination device is a base station device connected by an external device, such as an environmental monitoring board.
  • the model of the environmental monitoring board and the interface connected to the external device can be configured.
  • the external device is connected to the Ethernet interface of the environmental monitoring board.
  • the environmental monitoring version of the base station can play a role similar to a switch, and can transparently transmit the data of the external device to the main control board of the base station. deal with.
  • the DHCP client of the external device initiates an IP request
  • the DHCP server on the main control board of the base station receives the IP request transparently transmitted by the monitoring board, and assigns an internal IP address to the connected external device.
  • Step 102 in the correspondence between the internal IP address and the Ethernet interface, search for the Ethernet interface corresponding to the allocated internal IP address, and determine the destination device information corresponding to the destination device to which the found Ethernet interface belongs.
  • the main control can search the Ethernet interface corresponding to the assigned internal IP address in the switch chip through the corresponding relationship between the Ethernet interface and the internal IP address, and through the corresponding Ethernet interface, the base station can obtain the connection information of the external device Destination device, such as the device information of the environmental interface board.
  • the control of external devices is based on the model data of the device, and the base station cannot determine the correspondence between the model data of the device model and the internal IP address.
  • This embodiment maintains the correspondence between the internal IP address and the Ethernet interface to In this way, the corresponding relationship between the model data and the internal IP address can be found, so that there is no need to add additional information about the Media Access Control Address (MAC) of the base station equipment in the model data, reducing the operation and maintenance cost.
  • MAC Media Access Control Address
  • Step 103 in the model data of each external device, search for model data including the information of the destination device, and establish a correspondence between the found model data and the allocated internal IP address.
  • the model data is used to identify the external device.
  • the assigned IP address has a corresponding relationship with the model data configured by the user in the network management system, that is, the base station establishes the model data of the external device and the IP address of the external device The corresponding relationship, so that when the user operates through the model data, the base station can obtain the address of the external device corresponding to the model data, so as to communicate with the external device.
  • Step 104 communicate with the external device identified by the model data through the internal IP address corresponding to the model data.
  • users can use different protocols to establish business channels according to data transmission requirements, such as Secure Shell Protocol (Secure Shell, SSH), Secure File Transfer Protocol (Secret File Transfer Protocol, SFTP), Network Configuration Protocol (The Network Configuration Protocol, NETCONF) , Hyper Text Transfer Protocol over SecureSocket Layer (HTTPS), etc., to achieve secure communication between the base station and external devices, and to complete the interaction at the business level.
  • Secure Shell Protocol Secure Shell, SSH
  • Secure File Transfer Protocol Secret File Transfer Protocol
  • SFTP Secure File Transfer Protocol
  • Network Configuration Protocol The Network Configuration Protocol, NETCONF
  • HTTPS Hyper Text Transfer Protocol over SecureSocket Layer
  • the base station determines that the message is a message of an external device identified by the model data according to the internal IP address in the received message; using Virtual Local Area Network (Virtual Local Area Network, VLAN) technology and container technology Directing the message of the external device identified by the model data to the virtual port of the service container; monitoring the message of the virtual port in the service container. That is, when receiving a message from an external device, VLAN technology and container technology can be used to guide the message of the external device to a virtual port of a specific service container, and the service layer monitors the message of the virtual port in the container.
  • VLAN technology and container technology can be used to guide the message of the external device to a virtual port of a specific service container, and the service layer monitors the message of the virtual port in the container.
  • the communication service of the external device in the base station is isolated from other core services of the base station, avoiding malicious use of the target device, such as the environmental monitoring board
  • the Ethernet port of the base station destroys the communication data of the base station, narrows the scope of base station security management to a controllable range, and meets the security requirements of base station communication.
  • a service channel is established with the external device identified by the model parameter through the corresponding internal IP address; and the external device is communicated with through the established service channel according to a custom application layer protocol.
  • This embodiment encapsulates the data that needs to be transmitted to the external device through a custom application layer protocol, so that the external device can recognize the data, and decapsulates the data from the external device, so that the base station can analyze the data of the external device, And upload to the network management.
  • the external device is a device of a different manufacturer, that is, when the manufacturer of the base station equipment is different, the data format in the external device may be different from the data format of the device in the base station.
  • the user-defined application layer protocol to realize the compatibility between the external equipment and the internal equipment of the base station, so as to facilitate the operation and maintenance of the external equipment, for example, remotely configure the parameters of the external equipment, remote file transfer and version management, real-time data monitoring, alarm, etc.
  • the external equipment that is, the third-party equipment is connected to the environmental port monitoring version of the base station, and the base station is connected to the network management expert (UME).
  • UAE network management expert
  • the operation and maintenance of the external equipment is integrated into the traditional operation and maintenance of the base station.
  • Third-party equipment can establish SFTP, SSH, and DHCP service channels with the base station for data transmission, and guide the data channel VLAN technology and container technology to the virtual port of the service container to improve the security of the base station.
  • the application layer protocol to analyze the transmitted data to obtain the specific content of the transmitted data, or encapsulate the data to be transmitted to the external device through a custom protocol, so as to realize remote file management, version management, and alarm management through the network management system , device control, etc., without the need for additional external device network management to realize the operation and maintenance of external devices.
  • the alarm management service in the base station requests the alarm status of the external device every 2 seconds.
  • the external device management service in the base station queries the external device through the SSH channel according to the custom protocol, that is, sends an alarm request, and the external device responds through the SSH channel after receiving it.
  • the base station sends an alarm status message to the base station.
  • the base station external device management service analyzes the alarm status message according to the custom application layer protocol, obtains the alarm status of the external device, and transmits the analyzed alarm status to the alarm management service.
  • the alarm management service is based on The alarm status of the external device will report the alarm to the network management system or restore the alarm.
  • the operation instruction based on the model data issued by the network manager is obtained; the internal IP address corresponding to the model data is obtained according to the operation instruction based on the model data; according to the self-defined application layer protocol through the The established service channel transmits operation instructions to the external device.
  • the operation instruction includes any one or combination of the following: parameter configuration instruction, version switching instruction, file transfer instruction, user name password modification instruction; wherein, if the operation instruction is a parameter configuration instruction, version switching instruction or user name and password modification instruction, the established service channel is an SSH service channel, and if the operation instruction is a file command, the established service channel is an SFTP service channel.
  • the network management issues a parameter configuration command to the base station equipment management service in the base station.
  • the parameter configuration command is specifically a parameter modification command.
  • the external device management service in the base station issues a parameter modification command, and the external device management service sends the parameter modification command to the external device through the SSH channel according to the custom protocol.
  • the external device After receiving the parameter modification command, the external device performs modification and transmits the modified parameter through the SSH channel.
  • the response message is sent to the base station, the base station external device management service analyzes and modifies the response message according to the custom application layer protocol, the base station external device management service responds to the base station device management service, and the base station device management service responds to the network management.
  • the base station supports the SFTP client, that is, supports the SFTP protocol, and can transfer files through the SFTP service channel. If the external device needs to support file transfer, it can support the server of SFTP protocol. Customers can first transmit files to the base station through the network management system, and the base station will transmit the files to external devices, such as power supplies, according to user instructions. The base station can issue a version upgrade command, and the external device can perform remote version upgrade according to the command, and the version file can be transmitted to the external device through the file transfer function.
  • the network management can remotely send files to the base station, and transmit them to external devices through the base station.
  • the file in the file transfer instruction is specifically a version file.
  • the network management sends the version file to the base station through the SFTP service channel.
  • the base station version management module transmits the file path of the version file to the external device management service in the base station.
  • the external device management service will The file is transmitted to the external device through the SFTP service channel, and the management service of the external device responds to the network management.
  • the base station version management module After receiving the version switching instruction issued by the network management, the base station version management module transmits the version switching instruction to the external device management service, and the external device management service notifies the external device through the SSH channel after coding according to the custom application layer protocol. The base station is notified, the external device management service notifies the version management module after decoding, and the version management module returns the result to the network management.
  • the method further includes: storing the username and password in a database.
  • the user when the external device is initially connected to the base station, the user can enter the user name and password of the external device, such as a power supply, on the network management system, and periodically modify the user name and password for security needs.
  • the power supply is connected to the base station, if the base station or power supply undergoes operations such as version upgrade and reset, by storing the user name and password in the database, it can ensure that the base station or power supply can remember the password, and after the base station or power supply is started, it can ensure the security of external devices. Connect normally, no user re-entry required. After the external device is plugged into other base stations, the user needs to re-enter the password.
  • FIG. 4 it is a flow chart of interaction among the external device, the network management system, and the external device management service in the base station when changing the password.
  • step 401 the network manager sends an instruction to modify the user name and password to the external device management service.
  • the user name and password modification instruction may include a new user name and password.
  • Step 402 the external device management service sends the old and new user names and passwords to the external device.
  • This embodiment sends the new user name, password and old user name and password to the external device.
  • only the new user name and password can be sent to the external device. If only the user name is updated, only the new user name and password can be sent. New user name; if only the password is updated, only the new password can be sent, which is not limited in this embodiment.
  • step 403 the external device responds to the base station after receiving the old and new user names and passwords.
  • Step 404 the external device management service writes the new user name and password into the database.
  • Step 405 after the database writes the new user name and password, it notifies the external device management service that the writing is successful.
  • Step 406 the external device management service notifies the external device that the credit name and password are valid.
  • Step 407 the external device management service responds to the network management that the modification is successful.
  • the external device is connected through the Ethernet. Compared with connecting the external device through the serial port, the speed is higher than that of the serial port.
  • the internal IP address is allocated to the external device, and the public IP address is not occupied, which saves the public IP address resources of the operator.
  • this embodiment determines the model data of the external device through the corresponding relationship between the Ethernet interface and the destination device information, thereby realizing the corresponding relationship between the internal IP address of the external device and the model data of the external device, so that when the user needs to use the model data to externally When connected to the device for operation and maintenance, it can identify the IP address corresponding to the model data, and then communicate with the external device.
  • the corresponding relationship between the internal IP address and the model data of the external device can be realized.
  • the allocation of internal IP addresses and the binding of internal IP addresses and model data are realized, and then it can be passed Ethernet communicates with external devices, and by customizing the application layer protocol, the external device is compatible with the base station, which is convenient for monitoring the alarms and real-time data of the external device, and can also remotely set the common parameters of the external device. Remote file transfer and version upgrade management for external devices.
  • step division of the above various methods is only for the sake of clarity of description. During implementation, it can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. ; Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
  • the embodiment of the present application also relates to a communication device for an external device, as shown in FIG. 5 , including: an allocation module 501, configured to allocate an internal IP address for the connected external device;
  • the Ethernet interface is connected to the base station;
  • the search module 502 is configured to search for the Ethernet interface corresponding to the assigned internal IP address in the corresponding relationship between the internal IP address and the Ethernet interface; determine the Ethernet interface found
  • the destination device information corresponding to the destination device to which the network interface belongs; in the model data of each external device, search for the model data including the destination device information, and establish the relationship between the found model data and the assigned internal IP address Correspondence; wherein, the model data is used to identify the external device;
  • the communication module 503 is configured to communicate with the external device identified by the model data through the internal IP address corresponding to the model data.
  • the communication module 503 is further configured to establish a service channel with the external device identified by the model parameter through the corresponding internal IP address; communicate with the external device through the established service channel according to a custom application layer protocol External device communication.
  • the communication module 503 is further configured to periodically send an alarm request to the external device identified by the model data through the established service channel according to the custom application layer protocol; if an alarm from the external device is received A status message, analyzing the alarm status message to obtain the alarm status of the external device; transmitting the alarm status of the external device to the network management.
  • the communication module 503 is further used to obtain the operation instruction based on the model data issued by the network manager; obtain the internal IP address corresponding to the model data according to the operation instruction based on the model data;
  • the application layer protocol transmits operation instructions to the external device through the established service channel.
  • the operation instructions in the communication module 503 include any one or a combination of the following: parameter configuration instructions, version switching instructions, file transfer instructions, user name password modification instructions; wherein, if the operation instructions are parameters If the configuration instruction, version switching instruction or user name password modification instruction is used, the established service channel is an SSH service channel, and if the operation instruction is a file instruction, then the established service channel is an SFTP service channel.
  • the operation instruction includes: a password modification instruction
  • the user name and password are stored in the database after receiving a response message from the service channel indicating that the password modification of the external device is successful.
  • the message is a message of the external device identified by the model data; using VLAN technology and container technology, the external device identified by the model data
  • the message of the service container is directed to the virtual port of the service container; and the message of the virtual port in the service container is monitored.
  • this embodiment is an apparatus embodiment corresponding to the above-mentioned method embodiment, and this embodiment can be implemented in cooperation with the above-mentioned method embodiment.
  • the relevant technical details mentioned in the foregoing method embodiments are still valid in this embodiment, and will not be repeated here in order to reduce repetition.
  • the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.
  • modules involved in this embodiment are logical modules.
  • a logical unit can be a physical unit, or a part of a physical unit, or multiple physical units. Combination of units.
  • units that are not closely related to solving the technical problem proposed in the present application are not introduced in this embodiment, but this does not mean that there are no other units in this embodiment.
  • the embodiment of the present application also provides an electronic device, as shown in FIG. 6, including at least one processor 601; Instructions executed by the at least one processor 601, the instructions executed by the at least one processor 601, so that the at least one processor 601 can execute the communication method of the above-mentioned external device.
  • the memory and the processor are connected by a bus
  • the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory together.
  • the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
  • the bus interface provides an interface between the bus and the transceivers.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
  • the data processed by the processor is transmitted on the wireless medium through the antenna, further, the antenna also receives the data and transmits the data to the processor.
  • the processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, memory can be used to store data that the processor uses when performing operations.
  • Embodiments of the present application also provide a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • a storage medium includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本申请实施例涉及通信领域,公开了一种外接设备的通信方法、装置、电子设备和存储介质。本申请中,为接入的外接设备分配内部IP地址;外接设备通过目的设备的以太网接口与所述基站连接;在内部IP地址与以太网接口的对应关系中,查找与分配的内部IP地址对应的以太网接口;确定查找到的以太网接口所属的目的设备对应的目的设备信息;在各外接设备的模型数据中,查找包括目的设备信息的模型数据,并建立查找到的模型数据与分配的内部IP地址的对应关系;其中,模型数据用于标识外接设备;通过与模型数据对应的内部IP地址,与模型数据标识的外接设备通信。

Description

外接设备的通信方法、装置、电子设备和存储介质
相关申请的交叉引用
本申请基于申请号为“202110726664.6”、申请日为2021年06月29日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。
技术领域
本申请实施例涉及通信领域,特别涉及一种外接设备的通信方法、装置、电子设备和存储介质。
背景技术
在基站作为网络设备进行通信时,考虑到运营商网际协议地址(Internet Protocol Address,IP)资源的紧缺,一个基站对外只有一个用于操作维护的公网IP地址,该IP地址一般都是主控板的IP地址。
对于基站中的内部设备来说,为了实现基站中内部设备的通信及用户对基站中各设备的监控、维护等,基站会通过私有协议为基站中的设备分配内部IP地址,而内部IP地址是不对用户呈现的。基站中的各设备均建立了对应的模型数据,以給用户呈现,用户能够通过模型数据确定基站中的设备并进行维护。基站往往会通过私有协议建立内部IP地址和模型数据的对应关系,从而使得基站在接收到用户通过模型数据对基站的操作时,能够得到模型数据对应的设备的内部IP地址,进而实现与基站内部设备的通信。
随着第五代移动通信技术5G的迅猛发展,O-RAN联盟提出未来的基站设备将会开放软件接口,支持不同厂家射频设备的互操作,减少对私有平台的依赖,提高网络设备接入的灵活性。即,基站还会接入外接设备,基站在接入外接设备时,基站的环境监控板会提供一个串口与外接设备连接,从而实现与外接设备的监控、维护等。
然而,通过串口连接外接设备,串口速率过慢,已经不能满足外接设备的信息传输需求。
发明内容
本申请实施例提供了一种外接设备的通信方法,包括:为接入的外接设备分配内部IP地址;其中,所述外接设备通过目的设备的以太网接口与所述基站连接;在内部IP地址与以太网接口的对应关系中,查找与所述分配的内部IP地址对应的以太网接口;确定所述查找到的以太网接口所属的目的设备对应的目的设备信息;在各外接设备的模型数据中,查找包括所述目的设备信息的模型数据,并建立所述查找到的模型数据与所述分配的内部IP地址的对应关系;其中,所述模型数据用于标识所述外接设备;通过与所述模型数据对应的内部IP地址,与所述模型数据标识的外接设备通信。
本申请实施例还提供了一种外接设备的通信装置,包括:分配模块,用于为接入的外接设备分配内部IP地址;其中,所述外接设备通过目的设备的以太网接口与所述基站连接;查找模块,用于在内部IP地址与以太网接口的对应关系中,查找与所述分配的内部IP地址对 应的以太网接口;确定所述查找到的以太网接口所属的目的设备对应的目的设备信息;在各外接设备的模型数据中,查找包括所述目的设备信息的模型数据,并建立所述查找到的模型数据与所述分配的内部IP地址的对应关系;其中,所述模型数据用于标识所述外接设备;通信模块,用于通过与所述模型数据对应的内部IP地址,与所述模型数据标识的外接设备通信。
本申请实施例还提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的外接设备的通信方法。
本申请实施例还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述的外接设备的通信方法。
附图说明
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定。
图1是根据本申请的实施例提供的外接设备的通信方法的流程图;
图2是根据本申请一实施例提供的设备的模型数据配置界面示意图;
图3是根据本申请一实施例提供的外接设备、基站、网管通信连接示意图;
图4是根据本申请一实施例提供的修改用户名密码的流程图;
图5是根据本申请一实施例提供的外接设备的通信装置的示意图;
图6是根据本申请一实施例提供的电子设备的结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本申请各实施例中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施例的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本申请的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。
本申请实施例的主要目的在于提出一种外接设备的通信方法、装置、电子设备和存储介质,能够提高外接设备与基站的通信速率,满足外接设备的信息传输需求,以便于对外接设备运维。
本实施例提供一种外接设备的通信方法,可应用于基站,本实施例的外接设备通信方法,包括:为接入的外接设备分配内部IP地址;其中,所述外接设备通过目的设备的以太网接口与所述基站连接;在内部IP地址与以太网接口的对应关系中,查找与所述分配的内部IP地址对应的以太网接口;确定所述查找到的以太网接口所属的目的设备对应的目的设备信息;在各外接设备的模型数据中,查找包括所述目的设备信息的模型数据,并建立所述查找到的模型数据与所述分配的内部IP地址的对应关系;其中,所述模型数据用于标识所述外接设备;通过与所述模型数据对应的内部IP地址,与所述模型数据标识的外接设备通信。
相较于通过串口将外接设备与基站连接,本实施例通过以太网连接接口,数据传输速度更高,另外,本申请的实施例给外接设备分配内部IP地址,不占用公用IP地址,节约运营商公用IP地址资源,本实施例在为外接设备分配IP地址后,通过以太网接口和目的设备信息的对应关系,确定外接设备的模型数据,从而实现了外接设备的内部IP地址和外接设备的模型数据的对应关系,使得在用户需要通过模型数据对外接设备进行运维时,能够识别出模型数据对应的IP地址,进而与外接设备通信,无需在模型数据新增信息,就能实现内部IP地址和外接设备的模型数据的对应关系,使得在不改变无线基站现有的运维的模型数据,且不暴露基站中的私有的自定义协议的基础上,实现内部IP地址的分配,以及内部IP地址和模型数据的绑定,从而使得通过以太网与外接设备通信,便于实现对外接设备的运维。
下面对本实施例的外接设备的通信方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。
步骤101,为接入的外接设备分配内部IP地址。其中,外接设备通过目的设备的以太网接口与所述基站连接。基站可使用动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)为外接设备分配内部IP地址。内部IP地址为私有IP地址。外接设备为连接在基站上进行管理的外部设备,如嵌入式电源等,本实施例不对此进行限定。目的设备可以为基站中的设备,可将外接设备的数据透传给基站,将基站的数据透传给外接设备,外接设备通过目的设备的以太网接口接入基站,例如环境监控板等可以为目的设备。
示例性的,可参照图2所示,图2为网管提供的用户界面的示意图,用户可在该界面上根据基站设备模型对外接设备的模型数据进行配置,设备模型中可以包括接入设备的设备型号、目的设备、数据处理方式,通信方式,模型数据标识等。数据处理方式有解析模式、透传模式等,通信方式有网口通信、串口通信等,本实施例可将数据处理方式配置为解析模式,通信方式配置为网口通信,实际使用中,用户可根据需求进行配置。目的设备为外接设备接入的基站设备,例如环境监控板,在图2所示的目的设备字段可以配置环境监控板的型号,以及外接设备连接的接口等。外接设备与环境监控板的以太网接口连接,基站的环境监控版可起到与交换机类似的作用,可将外接设备的数据透传给基站的主控板,主控对外接设备传输的数据进行处理。例如,外接设备的DHCP客户端发起IP请求,基站主控板上的DHCP服务器收到监控板透传过的IP请求,为接入的外接设备分配内部IP地址。
步骤102,在内部IP地址与以太网接口的对应关系中,查找与所述分配的内部IP地址对应的以太网接口,确定所述查找到的以太网接口所属的目的设备对应的目的设备信息。
示例性的,主控可通过以太网接口和内部IP地址的对应关系,在交换芯片中查找与分配的内部IP地址对应的以太网接口,通过对应的以太网接口,基站可得到外接设备连接的目的设备,例如环境接口板的设备信息。相关技术中,外接设备的操控都是基于设备的模型数据的,而基站无法确定设备模型的模型数据与内部IP地址的对应,本实施例通过维护内部IP地址与以太网接口的对应关系,以此,可查找到模型数据与内部IP地址的对应关系,从而无需在模型数据中额外增加基站设备的媒体存取控制地址(Media Access Control Address,MAC)相关信息,降低了运维成本。
步骤103,在各外接设备的模型数据中,查找包括所述目的设备信息的模型数据,并建立所述查找到的模型数据与所述分配的内部IP地址的对应关系。其中,所述模型数据用于标识所述外接设备。
示例性的,图2所示的目的设备中包括环境接口板的设备信息,则分配的IP地址与用户在网管中配置模型数据有对应关系,即基站建立外接设备的模型数据与外接设备IP地址的对应关系,从而用户通过模型数据进行操作时,基站能够得到模型数据对应的外接设备的地址,从而与外接设备进行通信。
步骤104,通过与所述模型数据对应的内部IP地址,与所述模型数据标识的外接设备通信。
例如,用户可根据数据传输需求,使用不同的协议建立业务通道,例如安全外壳协议(Secure Shell,SSH),安全文件传送协议(Secret File Transfer Protocol,SFTP),网络配置协议(The NetworkConfigurationProtocol,NETCONF),超文本传输安全协议(Hyper Text Transfer Protocol over SecureSocket Layer,HTTPS)等,实现基站与外接设备之间的安全通信,完成业务层面的交互。
在一些实施例中,基站根据接收到的报文中的内部IP地址,确定所述报文为模型数据标识的外接设备的报文;使用虚拟局域网(Virtual Local Area Network,VLAN)技术和容器技术,将所述模型数据标识的外接设备的报文导向至业务容器的虚拟端口;监听所述业务容器中的所述虚拟端口的所述报文。即,在接收到外接设备的报文时,可以使用VLAN技术和容器技术,将外接设备的报文导向到特定业务容器的虚拟端口,业务层在该容器中监听虚拟端口的报文。本实施例通过将报文导向到业务容器的虚拟端口,在主控板上VLAN隔离,实现了基站中外接设备的通信业务与基站其他核心业务的隔离,避免恶意使用目的设备,如环境监控板的以太网口破坏基站的通讯数据,把基站安全治理的范围缩小到可控范围内,满足基站通信的安全性需求。
在一些实施例中,通过所述对应的内部IP地址,与所述模型参数标识的外接设备建立业务通道;根据自定义应用层协议通过所述建立的业务通道与所述外接设备通信。本实施例通过自定义应用层协议对需要传输到外接设备的数据进行封装,以使得外接设备能够识别该数据,对来自外接设备的数据进行解封装,以使得基站能够解析出外接设备的数据,并上传至网管。本实施例考虑到外接设备为异厂家设备,即与基站设备厂商不同时,外接设备中的数据格式等与基站中的设备的数据格式等可能并不相同,本实施例通过自定义应用层协议,实现了外接设备和基站内部设备的兼容,从而便于进行外接设备的运维,例如,远程对外接设备的参数进行配置,远程的文件传输和版本管理、实时数据监控、告警等。
参照图3所示,外接设备,即第三方设备与基站的环境口监控版连接,基站与网管(Unified Management Expert,UME)连接,将对外接设备的运维融合到基站的传统运维中,第三方设备能够与基站建立SFTP、SSH、DHCP业务通道,进行数据传输,将数据通道VLAN技术和容器技术导向至业务容器的虚拟端口,以提高基站的安全性,并通过自定义协议,即自定义应用层协议对传输的数据进行解析,以得到传输的数据的具体内容,或者通过自定义协议将要传输至外接设备的数据进行封装,以实现通过网管进行远程的文件管理、版本管理、告警管理、设备控制等,无需额外的外接设备网管实现对外接设备的运维。
在一些实施例中,周期性的根据自定义应用层协议通过建立的业务通道向所述模型数据标识的外接设备发送告警请求;若接收到所述外接设备的告警状态消息,解析所述告警状态消息,得到外接设备的告警状态;将所述外接设备的告警状态传输至网管。
例如:基站中的告警管理服务每2S请求外接设备的告警状态,基站中的外接设备管理服 务根据自定义协议通过SSH通道向外接设备查询,即发送告警请求,外接设备收到后通过SSH通道回应基站,即向基站发送告警状态消息,基站外接设备管理服务根据自定义应用层协议解析告警状态消息,得到外接设备的告警状态,并将解析到的告警状态传输至告警管理服务,告警管理服务根据外接设备的告警状态将告警上报至网管或者恢复告警。
在一些实施例中,获取网管下发的基于模型数据的操作指令;根据所述基于模型数据的操作指令获取与所述模型数据对应的内部IP地址;根据所述自定义应用层协议通过所述建立的业务通道向所述外接设备传输操作指令。
在一些实施例中,操作指令包括以下任一项或其组合:参数配置指令,版本切换指令,文件传输指令,用户名密码修改指令;其中,若所述操作指令为参数配置指令、版本切换指令或用户名密码修改指令,则建立的所述业务通道为SSH业务通道,若所述操作指令为文件指令,则建立的所述业务通道为SFTP业务通道。
例如:网管给基站中的基站设备管理服务下发参数配置命令,参数配置命令具体为修改参数命令,例如,将外接设备电源80度停止工作,修改为电源90度停止工作,基站设备管理服务给基站中的外接设备管理服务下发修改参数命令,外接设备管理服务根据自定义协议通过SSH通道向外接设备发送修改参数命令,外接设备收到修改参数命令后,进行修改并通过SSH通道传输将修改应答消息至基站,基站外接设备管理服务根据自定义应用层协议解析修改应答消息,基站外接设备管理服务回应基站设备管理服务,基站设备管理服务回应网管。
在一些实施例中,基站支持SFTP的客户端,即支持SFTP协议,能够通过SFTP业务通道传输文件。如果外接设备需要支持文件传输可以支持SFTP协议的服务端。客户可以通过网管先将文件传给基站,基站会根据用户指令将文件传给外接设备,例如电源。基站可以下发版本升级的命令,外接设备可以根据该命令来进行远程版本升级,版本文件可以用文件传输的功能传给外接设备。
网管可远程下发文件至基站,通过基站传输至外接设备。例如:文件传输指令中的文件具体为版本文件,网管通过SFTP业务通道给基站下发版本文件,基站版本管理模块将版本文件的文件路径传输至基站中的外接设备管理服务,外接设备管理服务将文件通过SFTP业务通道传输至外接设备,外接设备管理服务回应网管。
在接收到网管下发的版本切换指令后,基站版本管理模块将版本切换指令传输至外接设备管理服务,外接设备管理服务根据自定义应用层协议编码后通过SSH通道通知外接设备,外接设备处理后通知基站,外接设备管理服务解码后通知版本管理模块,版本管理模块将结果返回给网管。
在一些实施例中,若所述操作指令包括:密码修改指令,则在从所述业务通道接收到外接设备的密码修改成功的应答消息之后,还包括:将所述用户名密码存储至数据库。
示例性的,外接设备在初始连接至基站时,用户可以在网管上输入外接设备,如电源的用户名和密码,并为了安全需要,定期修改用户名、密码。电源在接入基站后,如果基站或电源发生版本升级、复位等操作,通过将用户名和密码存储至数据库,可以保证基站或电源能够记住密码,在基站或电源启动后,能够保证外接设备的正常连接,不需要用户重新输入。在外接设备插入其它基站后需要用户重新输入密码。
参照图4所示,为外接设备、网管、基站中的外接设备管理服务在修改密码时的交互流程图。
步骤401,网管向外接设备管理服务发送修改用户名密码指令。其中,修改用户名密码指令中可包括新的用户名和密码。
步骤402,外接设备管理服务发送新旧用户名和密码给外接设备。本实施例将新的用户名、密码以及旧的用户名、密码发送至外接设备,实际应用过程中也可只将新用户名和密码发送给外接设备,若只更新用户名时,也可只发送新用户名;若只更新密码时,也可只发送新密码,本实施例不对此进行限定。
步骤403,外接设备接收到新旧用户名和密码后,回应基站。
步骤404,外接设备管理服务将新用户名和密码写入数据库。
步骤405,数据库将新用户名和密码写之后,通知外接设备管理服务写入成功。
步骤406,外接设备管理服务通知外接设备信用名和密码生效。
步骤407,外接设备管理服务回应网管修改成功。
本实施例通过以太网连接外接设备,相较于通过串口连接外接设备,相较于串口速率,速度更高,给外接设备分配内部IP地址,不占用公用IP地址,节约运营商公用IP地址资源,本实施例通过以太网接口和目的设备信息的对应关系,确定外接设备的模型数据,从而实现了外接设备的内部IP地址和外接设备的模型数据的对应关系,使得在用户需要通过模型数据对外接设备进行运维时,能够识别出模型数据对应的IP地址,进而与外接设备通信,无需在模型数据新增信息,就能实现内部IP地址和外接设备的模型数据的对应关系,从而使得不改变无线基站现有的运维的模型数据,且不暴露基站中的私有的自定义协议的基础上,就实现了内部IP地址的分配,以及内部IP地址和模型数据的绑定,进而能够通过以太网与外接设备通信,而且,通过自定义应用层协议,使得外接设备与基站兼容,便于对外接设备的告警、实时数据等进行监控,也可以对外置设备的常用参数进行远程设置,还实现了对外接设备的远程文件传输和版本升级管理。
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。
本申请的实施例还涉及一种外接设备的通信装置,如图5所示,包括:分配模块501,用于为接入的外接设备分配内部IP地址;其中,所述外接设备通过目的设备的以太网接口与所述基站连接;查找模块502,用于在内部IP地址与以太网接口的对应关系中,查找与所述分配的内部IP地址对应的以太网接口;确定所述查找到的以太网接口所属的目的设备对应的目的设备信息;在各外接设备的模型数据中,查找包括所述目的设备信息的模型数据,并建立所述查找到的模型数据与所述分配的内部IP地址的对应关系;其中,所述模型数据用于标识所述外接设备;通信模块503,用于通过与所述模型数据对应的内部IP地址,与所述模型数据标识的外接设备通信。
在一些实施例中,通信模块503进一步用于通过所述对应的内部IP地址,与所述模型参数标识的外接设备建立业务通道;根据自定义应用层协议通过所述建立的业务通道与所述外接设备通信。
在一些实施例中,通信模块503进一步用于周期性的根据所述自定义应用层协议通过建 立的业务通道向所述模型数据标识的外接设备发送告警请求;若接收到所述外接设备的告警状态消息,解析所述告警状态消息,得到外接设备的告警状态;将所述外接设备的告警状态传输至网管。
在一些实施例中,通信模块503进一步用于获取网管下发的基于模型数据的操作指令;根据所述基于模型数据的操作指令获取与所述模型数据对应的内部IP地址;根据所述自定义应用层协议通过所述建立的业务通道向所述外接设备传输操作指令。
在一些实施例中,通信模块503中所述操作指令包括以下任一项或其组合:参数配置指令,版本切换指令,文件传输指令,用户名密码修改指令;其中,若所述操作指令为参数配置指令、版本切换指令或用户名密码修改指令,则建立的所述业务通道为SSH业务通道,若所述操作指令为文件指令,则建立的所述业务通道为SFTP业务通道。
在一些实施例中,若所述操作指令包括:密码修改指令,则在从所述业务通道接收到外接设备的密码修改成功的应答消息之后,将所述用户名密码存储至数据库。
在一些实施例中,根据接收到的报文中的内部IP地址,确定所述报文为模型数据标识的外接设备的报文;使用VLAN技术和容器技术,将所述模型数据标识的外接设备的报文导向至业务容器的虚拟端口;监听所述业务容器中的所述虚拟端口的所述报文。
不难发现,本实施例为与上述方法的实施例相对应的装置实施例,本实施例可与上述方法实施例互相配合实施。上述方法实施例中提到的相关技术细节在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在第一实施例中。
值得一提的是,本实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本申请的创新部分,本实施例中并没有将与解决本申请所提出的技术问题关系不太密切的单元引入,但这并不表明本实施例中不存在其它的单元。
本申请的实施例还提供一种电子设备,如图6所示,包括至少一个处理器601;以及,与所述至少一个处理器601通信连接的存储器602;其中,所述存储器602存储有可被所述至少一个处理器601执行的指令,所述指令被所述至少一个处理器601执行,以使所述至少一个处理器601能够执行上述的外接设备的通信方法。
其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器。
处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器可以被用于存储处理器在执行操作时所使用的数据。
本申请的实施例还提供一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域的普通技术人员可以理解,上述各实施例是实现本申请的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。

Claims (10)

  1. 一种外接设备的通信方法,应用于基站,包括:
    为接入的外接设备分配内部IP地址;其中,所述外接设备通过目的设备的以太网接口与所述基站连接;
    在内部IP地址与以太网接口的对应关系中,查找与所述分配的内部IP地址对应的以太网接口;
    确定所述查找到的以太网接口所属的目的设备对应的目的设备信息;
    在各外接设备的模型数据中,查找包括所述目的设备信息的模型数据,并建立所述查找到的模型数据与所述分配的内部IP地址的对应关系;其中,所述模型数据用于标识所述外接设备;
    通过与所述模型数据对应的内部IP地址,与所述模型数据标识的外接设备通信。
  2. 根据权利要求1所述的外接设备的通信方法,其中,所述通过与所述查找到的模型数据对应的内部IP地址,与所述模型数据标识的外接设备通信,包括:
    通过所述对应的内部IP地址,与所述模型数据标识的外接设备建立业务通道;
    根据自定义应用层协议通过所述建立的业务通道与所述外接设备通信。
  3. 根据权利要求2所述的外接设备的通信方法,其中,所述根据自定义应用层协议通过所述建立的业务通道与所述外接设备通信,包括:
    周期性的根据所述自定义应用层协议通过建立的业务通道向所述模型数据标识的外接设备发送告警请求;
    若接收到所述外接设备的告警状态消息,根据所述自定义应用层协议解析所述告警状态消息,得到外接设备的告警状态;
    将所述外接设备的告警状态传输至网管。
  4. 根据权利要求2或3所述的外接设备的通信方法,其中,所述通过所述对应的内部IP地址,与所述模型参数标识的外接设备建立业务通道之前,包括:
    获取网管下发的基于模型数据的操作指令;
    根据所述基于模型数据的操作指令获取与所述模型数据对应的内部IP地址;
    所述根据自定义应用层协议通过所述建立的业务通道与所述外接设备通信,包括:
    根据所述自定义应用层协议通过所述建立的业务通道向所述外接设备传输操作指令。
  5. 根据权利要求4所述的外接设备的通信方法,其中,所述操作指令包括以下任一项或其组合:参数配置指令,版本切换指令,文件传输指令,用户名密码修改指令;其中,若所述操作指令为参数配置指令、版本切换指令或用户名密码修改指令,则建立的所述业务通道为SSH业务通道,若所述操作指令为文件指令,则建立的所述业务通道为SFTP业务通道。
  6. 根据权利要求4所述的外接设备的通信方法,其中,若所述操作指令包括:密码修改指令,则在从所述业务通道接收到外接设备的密码修改成功的应答消息之后,还包括:
    将用户名和密码存储至数据库。
  7. 根据权利要求1至6中任一项所述的外接设备的通信方法,其中,所述通过与所述模型数据对应的内部IP地址,与所述模型数据标识的外接设备通信,包括:
    根据接收到的报文中的内部IP地址,确定所述报文为模型数据标识的外接设备的报文;
    使用VLAN技术和容器技术,将所述模型数据标识的外接设备的报文导向至业务容器的虚拟端口;
    监听所述业务容器中的所述虚拟端口的所述报文。
  8. 一种外接设备的通信装置,其特征在于,包括:
    分配模块,用于为接入的外接设备分配内部IP地址;其中,所述外接设备通过目的设备的以太网接口与所述基站连接;
    查找模块,用于在内部IP地址与以太网接口的对应关系中,查找与所述分配的内部IP地址对应的以太网接口;确定所述查找到的以太网接口所属的目的设备对应的目的设备信息;在各外接设备的模型数据中,查找包括所述目的设备信息的模型数据,并建立所述查找到的模型数据与所述分配的内部IP地址的对应关系;其中,所述模型数据用于标识所述外接设备;
    通信模块,用于通过与所述模型数据对应的内部IP地址,与所述模型数据标识的外接设备通信。
  9. 一种电子设备,其特征在于,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至7中任一所述的外接设备的通信方法。
  10. 一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的外接设备的通信方法。
PCT/CN2022/096990 2021-06-29 2022-06-02 外接设备的通信方法、装置、电子设备和存储介质 WO2023273799A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22831620.4A EP4362402A1 (en) 2021-06-29 2022-06-02 Communication method and apparatus for external devices, electronic device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110726664.6 2021-06-29
CN202110726664.6A CN115550313A (zh) 2021-06-29 2021-06-29 外接设备的通信方法、装置、电子设备和存储介质

Publications (1)

Publication Number Publication Date
WO2023273799A1 true WO2023273799A1 (zh) 2023-01-05

Family

ID=84689994

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/096990 WO2023273799A1 (zh) 2021-06-29 2022-06-02 外接设备的通信方法、装置、电子设备和存储介质

Country Status (3)

Country Link
EP (1) EP4362402A1 (zh)
CN (1) CN115550313A (zh)
WO (1) WO2023273799A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117880860A (zh) * 2024-03-13 2024-04-12 福建时代星云科技有限公司 一种基于LwIP兼容有线与无线网卡的方法与设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102648454A (zh) * 2009-11-19 2012-08-22 高通股份有限公司 虚拟外围集线器装置和系统
CN107360563A (zh) * 2017-07-31 2017-11-17 努比亚技术有限公司 数据传输系统、方法、外接设备和移动终端
US20190058690A1 (en) * 2017-08-21 2019-02-21 Verizon Patent And Licensing Inc. Dynamically allowing traffic flow through a firewall to allow an application server device to perform mobile-terminated communications
US20200257518A1 (en) * 2020-04-24 2020-08-13 Intel Corporation Device firmware update techniques

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102648454A (zh) * 2009-11-19 2012-08-22 高通股份有限公司 虚拟外围集线器装置和系统
CN107360563A (zh) * 2017-07-31 2017-11-17 努比亚技术有限公司 数据传输系统、方法、外接设备和移动终端
US20190058690A1 (en) * 2017-08-21 2019-02-21 Verizon Patent And Licensing Inc. Dynamically allowing traffic flow through a firewall to allow an application server device to perform mobile-terminated communications
US20200257518A1 (en) * 2020-04-24 2020-08-13 Intel Corporation Device firmware update techniques

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117880860A (zh) * 2024-03-13 2024-04-12 福建时代星云科技有限公司 一种基于LwIP兼容有线与无线网卡的方法与设备

Also Published As

Publication number Publication date
CN115550313A (zh) 2022-12-30
EP4362402A1 (en) 2024-05-01

Similar Documents

Publication Publication Date Title
JP7012836B2 (ja) ネットワークスライス管理方法及び装置
US10541877B2 (en) Dynamic reservation protocol for 5G network slicing
RU2420029C2 (ru) Способ конфигурирования точки доступа и управления точкой доступа и контроллер доступа
CN100563174C (zh) 一种管理动态地址设备的方法和代理装置
US8612540B2 (en) Wireless data card and working method of the wireless data card
WO2019134595A1 (zh) 配置系统、客户端设备、嵌入式设备配置方法及存储介质
CN103677858A (zh) 一种云环境中虚拟机软件管理的方法、系统及设备
CN104038402A (zh) 一种访客网络的实现方法及无线路由器
US20210235245A1 (en) Terminal Application Activation Method, Apparatus, and System
WO2021057802A1 (zh) 管理das系统的方法和设备、电子设备、存储介质
WO2023273799A1 (zh) 外接设备的通信方法、装置、电子设备和存储介质
CN104243198B (zh) 一种基于网络配置协议的网络管理方法和系统
CN112073555A (zh) Ip地址的配置方法、电子设备和计算机可读存储介质
WO2019009263A1 (ja) 機器をリモートで管理するための装置、方法及びそのためのプログラム
CN114025009B (zh) 转发请求的方法、系统、代理服务器和装置
WO2013185696A2 (zh) 一种数据处理的方法与设备
WO2023138335A1 (zh) 用户终端的差异化控制方法、装置及相关设备
CN109451497B (zh) 无线网络连接方法及装置、电子设备、存储介质
CN114025010B (zh) 建立连接的方法和网络设备
CN113543132B (zh) 节点设备的入网方法及装置、存储介质、电子设备
CN103441876A (zh) 一种基于dhcp协议和snmp协议的网络设备管理方法及系统
WO2023116638A1 (zh) 切片配置方法、系统、服务器和存储介质
CN113810900A (zh) 网络接入方法、电子设备及存储介质
WO2023035777A1 (zh) 网络配置方法、代理组件、控制器、电子设备和存储介质
CN111181904A (zh) 网络访问方法、装置及介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22831620

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2023580582

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2022831620

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2022831620

Country of ref document: EP

Effective date: 20240124