CN113422702B - Android equipment supporting wireless routing - Google Patents

Android equipment supporting wireless routing Download PDF

Info

Publication number
CN113422702B
CN113422702B CN202110971964.0A CN202110971964A CN113422702B CN 113422702 B CN113422702 B CN 113422702B CN 202110971964 A CN202110971964 A CN 202110971964A CN 113422702 B CN113422702 B CN 113422702B
Authority
CN
China
Prior art keywords
routing
android
openwrt
network
management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110971964.0A
Other languages
Chinese (zh)
Other versions
CN113422702A (en
Inventor
王海峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Mythware Information Technology Co ltd
Original Assignee
Nanjing Mythware Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Mythware Information Technology Co ltd filed Critical Nanjing Mythware Information Technology Co ltd
Priority to CN202110971964.0A priority Critical patent/CN113422702B/en
Publication of CN113422702A publication Critical patent/CN113422702A/en
Application granted granted Critical
Publication of CN113422702B publication Critical patent/CN113422702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0873Checking configuration conflicts between network elements
    • 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/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an android device supporting wireless routing, which belongs to the technical field of android devices and comprises a device structure, wherein a routing management subsystem and an android subsystem are arranged in the device structure. The android device supporting wireless routing solves the problem that OpenWrt and android depend on different root file systems in the same Linux operating environment, solves the problem that the android system cannot provide rich functions of a professional router, conveniently and quickly customizes an embedded system with specific functions to manufacture firmware, improves the ductility of the firmware, ensures the sales volume of the firmware, and enables a network manager to preferentially consider and adjust a routing strategy with high conflict level, so that the efficiency of debugging the routing strategy is improved, the workload of the network manager is reduced, and the capability of monitoring all data passing through the routing can be achieved.

Description

Android equipment supporting wireless routing
Technical Field
The invention relates to the technical field of android devices, in particular to an android device supporting wireless routing.
Background
At present, Android equipment usually integrates a wifi network card for connecting an AP to surf the internet or works in a wifi direct connection mode to perform miracast screen projection. The Android system also supports switching the wifi to the AP mode, and wireless hotspot service is provided for other equipment. However, in the AP mode, the device can only provide a very limited routing function, and cannot support professional services such as channel management, firewall management, Qos, and the like. OpenWRT is a highly modular and highly automated embedded Linux system with powerful network components and extensibility, which can make up for the shortcomings of Android in routing and network management.
Android and OpenWrt are both based on linux kernel, but because they use different compilation chains, the dynamic libraries on which the execution program depends are different. The executors of both systems may depend on the same dynamic library, such as/lib/libc. In addition, root file systems of Android and OpenWrt respectively comprise special files on which the system runs. Therefore, Android and OpenWrt cannot run in the same linux root file system.
In order to integrate an OpenWrt system on an Android device to obtain rich routing and network management functions. At present, the Android and openwrt hardware subsystems are usually realized through network physical connection. For example, in the scheme, "CN 104869669B is an intelligent wireless router", in the scheme, Android and OpenWrt independently run in linux environments on two hardware processors, but the two hardware processors are used, which is inconvenient to use, and the two hardware processors are used, which greatly increases the cost.
Disclosure of Invention
The invention aims to provide Android equipment supporting wireless routing, which solves the problem that OpenWRT and Android depend on different root file systems in the same Linux operating environment, solves the problem that the Android system cannot provide rich functions of a professional router, conveniently and quickly customizes an embedded system with specific functions to manufacture firmware, improves the ductility of the embedded system, ensures the sales volume of the embedded system, calls iptables through scripts to realize the firewall function, configures and stores the installed upgrade packages in UCI files in an open and extensible OPKG format, and a network manager can give priority to adjusting a routing strategy with high conflict level, so that the efficiency of debugging the routing strategy is improved, the workload of the network manager is reduced, and the capability of monitoring all data passing through the routing can be achieved, thereby solving the problem in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme:
an Android device supporting wireless routing comprises a device structure, wherein a routing management subsystem and an Android subsystem are arranged in the device structure, the Android subsystem is integrated and loaded with the routing management subsystem, the device structure comprises a CPU (Central processing Unit), a wired network card, a first wif network card and a second wifi network card, the wired network card is responsible for accessing the wired network device through a wired network module, the first wif network card works in an AP (Access Point) mode and is responsible for accessing the wireless device, the second wifi network card works in a PP (propene Polymer) mode and provides wifi direct connection service for Android miracast application, the routing management subsystem adopts an OpenWrt system, the WRT is a highly-modularized and highly-automatic embedded Linux issuing system, the OpenWrt system is used in the routing management subsystem, firstly, a router firmware is refreshed into the OpenWrt system, namely, the installation of the OpenWrt system is equivalent to the installation of the OpenWrt system, and the Android subsystem are both operated on a Linux kernel, but the two have different root file systems, rootfs, the installation of the OpenWrt system comprises Web uploading firmware update, PFTP uploading firmware update and programmer writing firmware, the way of configuring OpenWrt comprises SSH login through command line control and Web login through Web interface setting, the package management of OpenWrt provides a completely writable file system, the selection and configuration are provided by an application program provider, and the user-defined equipment is allowed to adapt to any application program;
when wifi P2P network equipment is started, the Android subsystem creates a new routing table t-P2P, and adds a destination address as a route of a network segment of the routing table t-P2P;
the Android subsystem creates a routing rule to represent all data packets generated by session connection established on the P2P network card, and the data packets are forwarded according to a routing table t-P2P, wherein the routing table is independent of a main routing table managed by openwrt, so that application data of the Android system on the wifi P2P network card cannot be influenced by openwrt.
Further, the root file system rootfs is a file system, the file system has a function of storing a data file of a common file system, and is the first file system mounted when the kernel is started, an image file of kernel codes is stored in the root file system, and a system boot loader loads some initialization scripts and services from the root file system to the memory to run after the root file system is mounted.
Further, the OpenWrt system is an intelligent router operating system based on Linux, a user can install various application software in a customized manner, the OpenWrt system provides various functional plug-ins, so that the user can install the router in a customized manner, some basic functions are built in the OpenWrt system in a default manner, and the OpenWrt system includes the following steps:
the method comprises the following steps: network function: the network function is a core function of the router, and is used for setting and managing a network interface, supporting a DHCP protocol, serving as a DHCP server in a home network, serving as a DHCP client, a host and a DNS function in a wide area network, and being capable of accelerating DNS response and reducing DNS flow of the wide area network;
step two: and (3) system management: the system management is other management functions of the router except network management, and effectively sets host name, log server, NTP and password, remote security login, process starting management and timing task management, and effectively sets and manages the system attribute;
step three: and (3) state monitoring: the state monitoring is mainly used for monitoring the current state of the router, only the current state of the router can be checked, the version, the running time, the average load and the memory occupation of system firmware can be checked, and the network state, DHCP users and wireless users, firewall state statistics, a routing forwarding table and an ARP table, a system log and a kernel start log, the system process load state, the utilization rate of a CPU11 and the utilization rate of a memory are monitored.
The invention provides another technical scheme: a method for solving routing conflict management when Android and openwrt coexist through policy routing comprises a detection method and a management method, wherein the detection method comprises the following steps:
the method comprises the following steps: the RPSL is expanded to have the capability of describing the AS relationship;
step two: for vuEv, describing the relationship between each node in u and ncighboss (t) { v l (uv) ∈ E } by using an extended RPSL, and storing the description;
step three: when route oscillation occurs, each node trapped in the oscillation detects respective in-doubt path pairs through a plurality of groups of detection methods;
step four: each node checks whether the in-doubt path pair violates the safety routing strategy configuration principle or not according to the relationship between the node and the adjacent node stored by the node, and marks the in-doubt path pair as a relationship conflict in-doubt path pair for a violating person;
step five: the routing strategy causing the relation conflict doubt path pair is improved in conflict level, an enumeration data type relationship-enum is added to RPSL by utilizing a Dictionary class, and an attribute relationship is added to a BGP4 protocol.
Furthermore, in the detection method, by using the AS relationship formed between the local and the adjacent autonomous system, relationship is made to be a database for storing the AS relationship between the u point and the adjacent node, so that the description can be stored in the local relationship, the definition of the relationship conflict suspicion permission path pair is given, the routing policy conflicts are determined by using the definition, and the conflict level of the corresponding routing policy is improved.
Further, aiming at the second step, a monitoring module is further arranged in the Android subsystem 3, and the monitoring module can establish a corresponding relation table according to the MAC of the router, namely the BSSID, and the MAC address of the sending end, namely the SA, and take the data from the IP address and recombine the data.
Compared with the prior art, the invention has the beneficial effects that:
1. according to the Android device supporting the wireless router, the OpenWrt system is used in the routing management subsystem, firstly, the router firmware is refreshed into the OpenWrt system, namely the OpenWrt system is equivalent to installation of the OpenWrt system, the OpenWrt system and the Android subsystem are operated on a Linux kernel, but the OpenWrt system and the Android subsystem have different root file systems rootfs31, when the OpenWrt system operates, the root directory position referred to when a program is executed is changed through the root, the problem that the OpenWRT and the Android depend on different root file systems in the same Linux operation environment is solved, and the problem that the Android system cannot provide rich functions of a professional router is solved.
2. The Android device supporting wireless routing, provided by the invention, provides a completely writable file system through packet management of OpenWrt, selects and configures the file system from an application program provider, allows a user to customize the device to adapt to any application program, is a highly modularized and highly automated embedded Linux system, has strong network components and expansibility, enables a user to conveniently and quickly customize an embedded system with specific functions to manufacture firmware by only one simple make command, improves the extensibility of the firmware, ensures the sales volume of the firmware, adopts a hardware processor to simultaneously operate two subsystems of Android and OpenWrt, and saves the cost.
3. The android device supporting wireless routing, provided by the invention, OpenWrt is an intelligent router operating system, can provide mature functions such as Web authentication and the like for users to select, OpenWrt is a Linux release for embedded devices, has very high expandability, can very easily construct a full-function intelligent routing or server device from scratch, and is mainly characterized in that the OpenWrt has high expandability and a file system can be written, developers do not need to completely recompile after each modification, only need to compile own software packages, so that the development progress is accelerated, source codes are automatically downloaded and patched during compiling to meet the requirements of a specified platform, compiling is carried out, Makefile can be modified to download the latest software packages, iptables are called through scripts to realize firewall functions, and configuration is stored in UCI files, and installing the upgrade package in an open and extensible OPKG format.
4. The android equipment supporting the wireless routing, which is provided by the invention, utilizes the AS relation formed between the local and the adjacent autonomous system in the detection method, and makes the relationship be a database for storing the AS relation between the u point and the adjacent node, this allows the description to be stored in the local relation, gives the definition of the relation conflict doubt permit path pair, uses it to determine which routing policy conflicts violate the secure routing policy configuration principle, and the conflict level of the corresponding routing strategy is improved, the conflict level of the routing strategy is determined by utilizing the security configuration principle based on the autonomous system relationship, the method is used for determining the conflict level of the routing strategy in the strategy conflict set, and the network manager can preferentially consider to adjust the routing strategy with high conflict level, so that the efficiency of debugging the routing strategy is improved, and the workload of the network manager is reduced.
5. According to the Android device supporting the wireless routing, the Android subsystem is internally provided with the monitoring module, the monitoring module can establish a corresponding relation table according to the MAC (media access control) of the router, namely BSSID (basic service system identifier), and the MAC address of the sending end, namely SA (security access server), and can take data from the IP address and recombine the data.
Drawings
FIG. 1 is a block diagram of the apparatus structure of the present invention;
FIG. 2 is a block diagram of the android device connection of the present invention;
FIG. 3 is a flow chart of the OpenWrt system of the present invention;
FIG. 4 is a flow chart of a method for routing conflict management detection in accordance with the present invention;
FIG. 5 is a flow chart of a method for managing routing conflicts in accordance with the present invention.
In the figure: 1. a device configuration; 11. a CPU; 12. a wired network card; 121. a wired network module; 13. a first wif network card; 14. a second wifi network card; 2. a route management subsystem; 21. an OpenWrt system; 3. an Android subsystem; 31. root file system rootfs.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an Android device supporting wireless routing includes a device structure 1, a routing management subsystem 2 and an Android subsystem 3 are disposed in the device structure 1, the routing management subsystem 2 is integrated and loaded in the Android subsystem 3, the device structure 1 is composed of a CPU11, a wired network card 12, a first wif network card 13 and a second wifi network card 14, the wired network card 12 is responsible for accessing a wired network device through a wired network module 121, the first wif network card 13 works in an AP mode to be responsible for accessing a wireless device, and the second wifi network card 14 works in a P2P mode to provide wifi direct connection service for Android miracast applications.
Referring to fig. 2, the routing management subsystem 2 adopts an OpenWrt system 21, OpenWrt is a highly modularized and highly automated embedded Linux distribution system, the OpenWrt system 21 is used in the routing management subsystem 2, a router firmware is firstly refreshed into the OpenWrt system 21, that is, the OpenWrt system 21 is equivalent to installation of the OpenWrt system 21, the OpenWrt system 21 and the Android subsystem 3 both operate on Linux kernels, but have different root file systems rootfs31, when the OpenWrt operates, a root directory position referred to when a program is executed is changed through a root, so that a problem that the OpenWrt and the Android depend on different root file systems in the same Linux operating environment is solved, rich functions of a professional router cannot be provided by the Android system are solved, and a hardware processor is adopted to simultaneously operate the Android and OpenWrt subsystems, thereby saving cost.
The installation of the OpenWrt system 21 includes Web uploading firmware update, PFTP uploading firmware update and programmer writing firmware, the way of configuring OpenWrt includes SSH login through command line control and Web login through Web interface setting, the package management of OpenWrt provides a completely writable file system, the selection and configuration provided by application program suppliers and allows your self-defined equipment to adapt to any application program, the highly modularized and highly automated embedded Linux system has strong network components and expansibility, so that a user can conveniently and quickly customize an embedded system with specific functions to make firmware by only one simple make command, the extensibility is improved, and the sales volume is ensured.
Root file system rootfs31 is a file system that has the function of storing data files of a normal file system and is the first file system mounted during kernel startup, an image file of kernel codes is stored in the root file system, and a system boot startup program loads some initialization scripts and services from the root file system into a memory to run after the root file system is mounted.
Referring to fig. 3, the OpenWrt system 21 is an intelligent Linux-based router operating system, a user can install various application software in a customized manner, the OpenWrt system 21 provides various functional plug-ins, so that the user can install the router in a customized manner, some basic functions are built in the OpenWrt system 21 by default, and the OpenWrt system 21 includes the following steps:
the method comprises the following steps: network function: the network function is a core function of the router, and is used for setting and managing a network interface, supporting a DHCP protocol, serving as a DHCP server in a home network, serving as a DHCP client, a host and a DNS function in a wide area network, and being capable of accelerating DNS response and reducing DNS flow of the wide area network;
step two: and (3) system management: the system management is other management functions of the router except network management, and effectively sets host name, log server, NTP and password, remote security login, process starting management and timing task management, and effectively sets and manages the system attribute;
step three: and (3) state monitoring: the state monitoring is mainly used for monitoring the current state of the router, only the current state of the router can be checked, the version, the running time, the average load and the memory occupation of system firmware can be checked, and the network state, DHCP users and wireless users, firewall state statistics, a routing forwarding table and an ARP table, a system log and a kernel start log, the system process load state, the utilization rate of a CPU11, the utilization rate of a memory and the like are monitored.
OpenWrt is an intelligent router operating system, which can provide mature functions such as Web authentication and the like for users to select, is a Linux distribution for embedded devices, has very high expandability, a fully functional intelligent routing or server device can be built very easily from scratch, OpenWrt is mainly characterized by its high scalability, and the file system can be written, developers do not need to completely recompile after modifying every time, only need to compile own software package, therefore, the development progress is accelerated, the source codes are automatically downloaded and patched during compiling to meet the requirements of the specified platform, the software package can be compiled, the Makefile can be modified to download the latest software package, the functions of the firewall are realized by calling iptables through scripts, the configuration is stored in a UCI file, and an upgrading package is installed in an open and extensible OPKG format.
Referring to fig. 4, in order to better show a process of enabling an Android device supporting a wireless router to be implemented, the present embodiment provides a method for solving routing conflict management when Android and openwrt coexist through policy routing, where the method includes a detection method and a management method, and the detection method includes the following steps: .
The method comprises the following steps: the RPSL is expanded to have the capability of describing the AS relationship;
step two: for vuEv, describing the relationship between each node in u and ncighboss (t) { v l (uv) ∈ E } by using an extended RPSL, and storing the description;
step three: when route oscillation occurs, each node trapped in the oscillation detects respective in-doubt path pairs through a plurality of groups of detection methods;
step four: each node checks whether the in-doubt path pair violates the safety routing strategy configuration principle or not according to the relationship between the node and the adjacent node stored by the node, and marks the in-doubt path pair as a relationship conflict in-doubt path pair for a violating person;
step five: the routing strategy causing the relation conflict doubt path pair is improved in conflict level, an enumeration data type relationship-enum is added to RPSL by utilizing a Dictionary class, and an attribute relationship is added to a BGP4 protocol.
In the detection method, the AS relation formed between a local autonomous system and an adjacent autonomous system is utilized, relationship is made to be a database for storing the AS relation between u point and the adjacent node, so that the description can be stored in the local relationship, the definition of a relation conflict suspicion permission path pair is given, the route strategy conflict is determined by utilizing the relation suspicion permission path pair, the conflict level of the corresponding route strategy is improved, the conflict level of the route strategy is determined by utilizing the security configuration principle based on the autonomous system relation, the conflict level of the route strategy is determined for the route strategy in the strategy conflict set, and a network manager can give priority to the adjustment of the route strategy with high conflict level, so that the efficiency of debugging the route strategy is improved, and the work load of a network manager is reduced.
Referring to fig. 5, in order to better show a process of implementing an Android device supporting wireless routing, the embodiment provides a method for solving routing conflict management when Android and openwrt coexist through policy routing, including the following steps:
the method comprises the following steps: when the wifi P2P network equipment is started, the Android subsystem 3 creates a new routing table t-P2P, and adds a destination address as a route of a network segment of the routing table t-P2P;
step two: the Android subsystem 3 creates a routing rule as follows, which indicates that all data packets generated by session connection established from the p2p network card are forwarded according to a routing table t-p2 p;
step three: the routing table is independent of a main routing table managed by openwrt, and therefore application data of the android system on the wifi P2P network card cannot be influenced by openwrt.
The Android subsystem 3 is also internally provided with a monitoring module, the monitoring module can establish a corresponding relation table according to the MAC of the router, namely BSSID, and the MAC address of the sending end, namely SA, and take the data from the IP address and recombine the data.
To sum up, the Android device supporting wireless routing proposed by the present invention needs to use the OpenWrt system 21 in the routing management subsystem 2, first, the router firmware is refreshed into the OpenWrt system 21, that is, the installation of the OpenWrt system 21 is equivalent, both the OpenWrt system 21 and the Android subsystem 3 are run on the Linux kernel, but both have different root file systems rootfs31, when OpenWrt runs, the root directory position referred to when the program is executed is changed by the root, thereby solving the problem that the OpenWrt and the Android depend on different root file systems in the same Linux running environment, solving the problem that the Android system cannot provide rich functions of a professional router, the packet management of OpenWrt provides a completely writable file system, the selection and configuration provided by an application program provider are allowed, and the user is allowed to customize any application program, the highly modular and highly automated Linux embedded system, the OpenWrt is a Linux distribution version aiming at embedded equipment, has very high expandability, can very easily construct a full-function intelligent router or server equipment from scratch, is mainly characterized by high expandability and writable file system, a developer does not need to completely recompile after each modification, only needs to compile a software package of the developer, so that the development progress is accelerated, and source codes are automatically downloaded during compiling and patch to meet the requirements of a specified platform, compiling, modifying Makefile to download newest software package, calling iptables by script to realize firewall function, configuring and storing in UCI file, installing upgrade package in open and expandable OPKG format, using AS relation formed between local and adjacent autonomous system in detection method, making relationship be database for storing AS relation between u point and its adjacent node, storing description in local relationship, giving definition of relation conflict suspicion permission path pair, using it to determine which route strategy conflicts violate security route strategy configuration principle, and increasing conflict level of corresponding route strategy, using security configuration principle based on autonomous system relation, determining route strategy conflict level, using network manager to determine its conflict level for route strategy in strategy conflict set, considering the route strategy with high conflict level preferentially, therefore, the efficiency of debugging routing strategies is improved, the workload of network managers is reduced, a monitoring module is further arranged in the Android subsystem (3), the monitoring module can establish a corresponding relation table according to the MAC (media access control) of the router, namely BSSID (basic service system identifier), the MAC address of the sending end, namely SA (security association), and data are taken from the IP address and recombined.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be able to cover the technical solutions and the inventive concepts of the present invention within the technical scope of the present invention.

Claims (6)

1. An android device supporting wireless routing, characterized by: the system comprises an equipment structure (1), a route management subsystem (2) and an Android subsystem (3) are arranged in the equipment structure (1), the route management subsystem (2) is integrated and loaded in the Android subsystem (3), the equipment structure (1) is composed of a CPU (11), a wired network card (12), a first wif network card (13) and a second wifi network card (14), the wired network card (12) is responsible for accessing wired network equipment through a wired network module (121), the first wif network card (13) works in an AP mode and is responsible for accessing wireless equipment, the second wifi network card (14) works in a P2P mode and provides wifi direct connection service for Android miracast application, the route management subsystem (2) adopts an OpenWrt system (21), OpenWRT is a highly-modular and highly-automated embedded issuing system, and the OpenWrt system (21) is used in the route Linux management subsystem (2), firstly, a router firmware is refreshed into an OpenWrt system (21), namely the router firmware is equivalent to the installation of the OpenWrt system (21), the OpenWrt system (21) and an Android subsystem (3) are operated on a Linux kernel, but have different root file systems rootfs (31), the installation of the OpenWrt system (21) comprises Web upload firmware updating, PFTP upload firmware updating and programmer write firmware, a path for configuring OpenWrt comprises SSH login through command line control and Web login through Web interface setting, a completely writable file system is provided by packet management of OpenWrt, selection and configuration are provided by an application program provider, and a user-defined device is allowed to adapt to any application program;
when the wifi P2P network equipment is started, the Android subsystem (3) creates a new routing table t-P2P, and adds a destination address as a route of a t-P2P network segment of the routing table;
the Android subsystem (3) creates a routing rule to represent all data packets generated by session connection established on the P2P network card, and the data packets are forwarded according to a routing table t-P2P, wherein the routing table is independent of a main routing table managed by openwrt, so that application data generated by the Android system on the wifi P2P network card cannot be influenced by openwrt.
2. The android device supporting wireless routing of claim 1, wherein: the root file system rootfs (31) is a file system, the file system has a function of storing data files of a common file system, and is the first file system mounted when a kernel is started, an image file of kernel codes is stored in the root file system, and a system boot startup program can load some initialization scripts and services into a memory to run after the root file system is mounted.
3. The android device supporting wireless routing of claim 1, wherein: the OpenWrt system (21) is an intelligent Linux-based router operating system, a user can install various application software in a customized manner, the OpenWrt system (21) provides various functional plug-ins, so that the user can install the router in a customized manner, some basic functions are built in the OpenWrt system (21) in a default manner, and the OpenWrt system (21) comprises the following steps:
the method comprises the following steps: network function: the network function is a core function of the router, and is used for setting and managing a network interface, supporting a DHCP protocol, serving as a DHCP server in a home network, serving as a DHCP client, a host and a DNS function in a wide area network, and being capable of accelerating DNS response and reducing DNS flow of the wide area network;
step two: and (3) system management: the system management is other management functions of the router except network management, and effectively sets host name, log server, NTP and password, remote security login, process starting management and timing task management, and effectively sets and manages the system attribute;
step three: and (3) state monitoring: the state monitoring is mainly used for monitoring the current state of the router, only the current state of the router can be checked, the version, the running time, the average load and the memory occupation of system firmware can be checked, and the network state, DHCP users and wireless users, firewall state statistics, a routing forwarding table and an ARP table, a system log and a kernel start log, the system process load state, the utilization rate of a CPU (11) and the utilization rate of a memory are monitored.
4. The wireless-routing-capable android device of claim 1, wherein: the method for solving the routing conflict management when the Android and openwrt coexist through the policy routing comprises a detection method and a management method, wherein the detection method comprises the following steps:
the method comprises the following steps: the RPSL is expanded to have the capability of describing the AS relationship;
step two: for vuEv, describing the relationship between each node in u and ncighboss (t) { v l (uv) ∈ E } by using an extended RPSL, and storing the description;
step three: when route oscillation occurs, each node trapped in the oscillation detects respective in-doubt path pairs through a plurality of groups of detection methods;
step four: each node checks whether the in-doubt path pair violates the safety routing strategy configuration principle or not according to the relationship between the node and the adjacent node stored by the node, and marks the in-doubt path pair as a relationship conflict in-doubt path pair for a violating person;
step five: the routing strategy causing the relation conflict doubt path pair is improved in conflict level, an enumeration data type relationship-enum is added to RPSL by utilizing a Dictionary class, and an attribute relationship is added to a BGP4 protocol.
5. The android device supporting wireless routing of claim 4, wherein: in the detection method, the AS relation formed between the local and the adjacent autonomous system is utilized, the relationship is made to be a database for storing the AS relation between the u point and the adjacent node, so that the description can be stored in the local relationship, the definition of a relation conflict suspicion permission path pair is given, the routing strategy conflicts are determined by utilizing the relation, which violate the safe routing strategy configuration principle, and the conflict level of the corresponding routing strategy is improved.
6. The android device supporting wireless routing of claim 1, wherein: aiming at the second step, a monitoring module is further arranged in the Android subsystem (3), and the monitoring module can establish a corresponding relation table according to the MAC (media access control) of the router, namely BSSID (basic service system identifier), and the MAC address of the sending end, namely SA (security association), and take data from the IP address and recombine the data.
CN202110971964.0A 2021-08-24 2021-08-24 Android equipment supporting wireless routing Active CN113422702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110971964.0A CN113422702B (en) 2021-08-24 2021-08-24 Android equipment supporting wireless routing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110971964.0A CN113422702B (en) 2021-08-24 2021-08-24 Android equipment supporting wireless routing

Publications (2)

Publication Number Publication Date
CN113422702A CN113422702A (en) 2021-09-21
CN113422702B true CN113422702B (en) 2021-11-26

Family

ID=77719535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110971964.0A Active CN113422702B (en) 2021-08-24 2021-08-24 Android equipment supporting wireless routing

Country Status (1)

Country Link
CN (1) CN113422702B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713118A (en) * 2016-11-29 2017-05-24 深圳信息职业技术学院 Remote control system and method based on intelligent routing and chat room mechanism
CN110740095A (en) * 2018-07-19 2020-01-31 瑞昱半导体股份有限公司 Multimedia streaming and routing device and operating method thereof
CN112130930A (en) * 2020-09-23 2020-12-25 平安科技(深圳)有限公司 Mirror image system generation method, device, equipment and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898225B (en) * 2016-04-26 2019-02-01 中国科学技术大学 A kind of real-time photography head monitoring method based on Openwrt router
US20210014710A1 (en) * 2019-07-10 2021-01-14 MobileComm Ventures LLC WiFi Network Monitoring Smart Sensor and Network Early Warning Platform

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713118A (en) * 2016-11-29 2017-05-24 深圳信息职业技术学院 Remote control system and method based on intelligent routing and chat room mechanism
CN110740095A (en) * 2018-07-19 2020-01-31 瑞昱半导体股份有限公司 Multimedia streaming and routing device and operating method thereof
CN112130930A (en) * 2020-09-23 2020-12-25 平安科技(深圳)有限公司 Mirror image system generation method, device, equipment and medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
B智能路由器开发指;张永智等;《B智能路由器开发指南》;20161030;第4-5页 *
一种确定路由策略冲突级别的方法;党群等;《计算机工程》;20050905(第21期);第2节 *
一种让智能设备连接无线路由器的方法;weixin_30709929;《https://blog.csdn.net/weixin_30709929/article/details/98904943》;20151101;第3页 *
从零开始学习OpenWrt完美教程;疯仔嵌入式;《https://blog.csdn.net/yichu5074/article/details/78823299》;20171217;第1-6页 *

Also Published As

Publication number Publication date
CN113422702A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
US10838747B2 (en) Virtual appliances
US11924068B2 (en) Provisioning a service
CN113452830B (en) Batch control method of android cloud mobile phone, computer readable medium and electronic device
US8281302B2 (en) Method and apparatus for dynamically instantiating services using a service insertion architecture
CA2729898C (en) Method of dynamically updating network security policy rules when new network resources are provisioned in a service landscape
US20070274285A1 (en) System and method for configuring a router
US20070274230A1 (en) System and method for modifying router firmware
US20030074430A1 (en) Object oriented provisioning server object model
CN111431740A (en) Data transmission method, device, equipment and computer readable storage medium
US20030069956A1 (en) Object oriented SNMP agent
US20070274314A1 (en) System and method for creating application groups
WO2017059724A1 (en) Operating system starting method and device
JP2002140202A (en) Information delivery system and load distribution method therefor
US20030069955A1 (en) SNMP agent object model
KR102524540B1 (en) Apparatus and method for multi-cloud service platform
JP2010524069A (en) Method, system, and computer program for configuring a firewall
US20070067581A1 (en) Method for storing and running application program in flash-rom
US8732715B2 (en) Resource management method, device and program thereof
KR100706176B1 (en) Method and system of processing kernel patch for prevention of kernel vulnerability
US20030074429A1 (en) Object oriented provisioning server
CN115086166A (en) Computing system, container network configuration method, and storage medium
CN113422702B (en) Android equipment supporting wireless routing
CN105184165A (en) Anti-virus process scheduling method for network attached storage system
US11438387B2 (en) Access management system with a security maintenance manager
CN116743795A (en) Deployment method for application function configuration of Internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant