A Novel Energy-Efficient Contention-Based MAC Protocol Used for OA-UWSN

A hybrid optical-acoustic underwater wireless sensor network (OA-UWSN) was proposed to solve the problem of high-speed transmission of real-time video and images in marine information detection. This paper proposes a novel energy-efficient contention-based media access control (MAC) protocol (OA-CMAC) for the OA-UWSN. Based on optical-acoustic fusion technology, our proposed OA-CMAC combines the postponed access mechanism in carrier sense multiple access with collision avoidance (CSMA/CA) and multiplexing-based spatial division multiple access (SDMA) technology to achieve high-speed and real-time data transmission. The protocol first performs an acoustic handshake to obtain the location information of a transceiver node, ensuring that the channel is idle. Otherwise, it performs postponed access and waits for the next time slot to contend for the channel again. Then, an optical handshake is performed to detect whether the channel condition satisfies the optical transmission, and beam alignment is performed at the same time. Finally, the nodes transmit data using optical communication. If the channel conditions do not meet the requirements for optical communication, a small amount of data with high priority is transmitted through acoustic communication. An evaluation of the proposed MAC protocol was performed with OMNeT++ simulations. The results showed that when the optical handshaking success ratio was greater than 50%, compared to the O-A handshake protocol in the literature, our protocol could result in doubled throughput. Due to the low energy consumption of optical communication, the node’s lifetime is 30% longer than that of pure acoustic communication, greatly reducing the network operation cost. Therefore, it is suitable for large-scale underwater sensor networks with high loads.


Introduction
Underwater wireless sensor networks (UWSN) are typically used to monitor underwater environments and collect underwater data, such as marine data collection, pollution monitoring, marine exploration, assisted navigation, and tactical monitoring [1][2][3][4]. The vast areas to be detected in marine environments result in sparse deployment of the network and widespread use of mobile sensors. In order to cover the entire target area, the size of a network is generally large, and the topology is usually based on multi-hop wireless [5].
Three ways are normally employed to transfer data between UWSN nodes, namely, underwater electromagnetic communication, underwater acoustic communication, and underwater optical communication, and long-distance propagation of underwater acoustic communication [11]. Based on optical-acoustic fusion technology, it uses the postponed access of carrier sense multiple access with collision avoidance (CSMA/CA) technology to achieve high-speed and reliable transmission of underwater data while ensuring channel utilization and energy efficiency.

Underwater Optical-Acoustic Hybrid Wireless Sensor Network Topology and Data Transmission Process
As shown in Figure 1 [15], the network topology of the OA-UWSN is composed of fixed nodes, mobile nodes, sink nodes, and control centers. The fixed nodes are deployed on the sea floor to collect monitoring data (such as temperature, salinity, and depth), images, or videos. The mobile nodes are suspended in the sea, completing the data collection and passing the data to the upper mobile nodes or the sink nodes and then to the control centers. Sink nodes and control centers are deployed in the sea and receive the collected information and send it to remote terminals. communication, and long-distance propagation of underwater acoustic communication [11]. Based on optical-acoustic fusion technology, it uses the postponed access of carrier sense multiple access with collision avoidance (CSMA/CA) technology to achieve high-speed and reliable transmission of underwater data while ensuring channel utilization and energy efficiency.

Underwater Optical-Acoustic Hybrid Wireless Sensor Network Topology and Data Transmission Process
As shown in Figure 1 [15], the network topology of the OA-UWSN is composed of fixed nodes, mobile nodes, sink nodes, and control centers. The fixed nodes are deployed on the sea floor to collect monitoring data (such as temperature, salinity, and depth), images, or videos. The mobile nodes are suspended in the sea, completing the data collection and passing the data to the upper mobile nodes or the sink nodes and then to the control centers. Sink nodes and control centers are deployed in the sea and receive the collected information and send it to remote terminals. In the underwater optical-acoustic hybrid wireless sensor network, data communication is mainly divided into three phases. In the first phase, an acoustic handshake is performed to obtain the position information of a transceiver node to ensure that the channel is idle. Otherwise, a postponed access is performed to wait for the next time slot to compete again. In the second phase, according to the position information of the transmitting and receiving nodes obtained in the first stage, the node performs beam alignment (that is, optical handshake) to detect whether the signal-to-noise ratio or the bit error rate threshold required for optical communication is satisfied. In the third phase, if the optical communication requirement is met, data are transmitted between nodes through optical communication. If optical communication requirements are not met, data are transmitted between nodes through acoustic communication.

Data Link Layer Channel Access
In this paper, combined with the postponed access mechanism in the CSMA/CA data link layer access method, a spatial multiplexing-based spatial division multiple access is introduced, making full use of the directional transmission characteristics of light to increase the data transmission distance. Figure 2 shows a superframe structure designed for the OA-UWSN in this paper. The protocol divides a superframe into different periods: An acoustic handshake period, an optical handshake period, a data transmission period, and a postponed access period. In the underwater optical-acoustic hybrid wireless sensor network, data communication is mainly divided into three phases. In the first phase, an acoustic handshake is performed to obtain the position information of a transceiver node to ensure that the channel is idle. Otherwise, a postponed access is performed to wait for the next time slot to compete again. In the second phase, according to the position information of the transmitting and receiving nodes obtained in the first stage, the node performs beam alignment (that is, optical handshake) to detect whether the signal-to-noise ratio or the bit error rate threshold required for optical communication is satisfied. In the third phase, if the optical communication requirement is met, data are transmitted between nodes through optical communication. If optical communication requirements are not met, data are transmitted between nodes through acoustic communication.

Data Link Layer Channel Access
In this paper, combined with the postponed access mechanism in the CSMA/CA data link layer access method, a spatial multiplexing-based spatial division multiple access is introduced, making full use of the directional transmission characteristics of light to increase the data transmission distance. Figure 2 shows a superframe structure designed for the OA-UWSN in this paper. The protocol divides a superframe into different periods: An acoustic handshake period, an optical handshake period, a data transmission period, and a postponed access period.

Data Transmission, Reception, and Confirmation
This paper combines the advantages of both optical and acoustic communication modes and proposes an OA-CMAC communication mechanism. How node A and node B of the lower layers transmit data to the upper node is illustrated as an example to describe the data sending, receiving, and confirming mechanisms. As shown in Figure 3, the specific steps are as follows: 1. The mobile node is bound to a pressure sensor, which can measure its depth and send an acoustic interrogation signal at a certain frequency. This signal can reach the water surface directly at Time 0, or it can be forwarded by the fixed node and reach the water surface at Time 1. The time difference and the measured depth are used to locate the mobile node [22]; 2. The lower nodes A and B need to send acoustic RTS1 and RTS2, respectively, to perform an acoustic handshake. The acoustic RTS (Request to Send) includes information such as location so that the next optical handshake can be completed more smoothly; 3. After receiving the first RTS1, the upper node immediately replies with an acoustic CTS (Clear to Send). If all the nodes receive the CTS, they can know which nodes are competing to the channel, and the uncommitted nodes perform postponed access and wait for the channel to be idle; 4. After successful competition, the lower node A sends an optical RTS to perform an optical handshake. After receiving the RTS, the upper node responds with an optical CTS to confirm whether the communication mode is optical or acoustic; 5. If the optical handshaking is not completed within the time slot, the node that competes in the channel through the acoustic handshake performs acoustic communication with the upper node. If the two instances of handshaking are successful, optical data communication is performed. At this time, the upper node broadcasts a busy-tone signal through the acoustic signal to notify all lower nodes that it is busy, and the node that succeeded in competition performs optical communication according to the communication mode, modulation, and coding information determined by the optical handshaking; 6. After the end of one frame of data transmission, the upper node first sends an ACK (Acknowledgement) confirmation signal to the lower node. Then the upper node broadcasts a free signal through the acoustic signal, and all lower nodes recompete for the next frame of information transmission.
Each frame is subjected to an acoustic and optical handshake, and the position information of the mutual communication node is transmitted during the acoustic handshake. If the node moves and the position information changes, the optical alignment is realigned in the optical handshake phase.

Data Transmission, Reception, and Confirmation
This paper combines the advantages of both optical and acoustic communication modes and proposes an OA-CMAC communication mechanism. How node A and node B of the lower layers transmit data to the upper node is illustrated as an example to describe the data sending, receiving, and confirming mechanisms. As shown in Figure 3, the specific steps are as follows:

1.
The mobile node is bound to a pressure sensor, which can measure its depth and send an acoustic interrogation signal at a certain frequency. This signal can reach the water surface directly at Time 0, or it can be forwarded by the fixed node and reach the water surface at Time 1. The time difference and the measured depth are used to locate the mobile node [22]; 2.
The lower nodes A and B need to send acoustic RTS1 and RTS2, respectively, to perform an acoustic handshake. The acoustic RTS (Request to Send) includes information such as location so that the next optical handshake can be completed more smoothly; 3.
After receiving the first RTS1, the upper node immediately replies with an acoustic CTS (Clear to Send). If all the nodes receive the CTS, they can know which nodes are competing to the channel, and the uncommitted nodes perform postponed access and wait for the channel to be idle; 4.
After successful competition, the lower node A sends an optical RTS to perform an optical handshake. After receiving the RTS, the upper node responds with an optical CTS to confirm whether the communication mode is optical or acoustic; 5.
If the optical handshaking is not completed within the time slot, the node that competes in the channel through the acoustic handshake performs acoustic communication with the upper node. If the two instances of handshaking are successful, optical data communication is performed. At this time, the upper node broadcasts a busy-tone signal through the acoustic signal to notify all lower nodes that it is busy, and the node that succeeded in competition performs optical communication according to the communication mode, modulation, and coding information determined by the optical handshaking; 6.
After the end of one frame of data transmission, the upper node first sends an ACK (Acknowledgement) confirmation signal to the lower node. Then the upper node broadcasts a free signal through the acoustic signal, and all lower nodes recompete for the next frame of information transmission.
Each frame is subjected to an acoustic and optical handshake, and the position information of the mutual communication node is transmitted during the acoustic handshake. If the node moves and the position information changes, the optical alignment is realigned in the optical handshake phase.

Analysis of the Upper Limit of the Optical Handshake Time
In a frame of the superframe structure, the acoustic handshake time is fixed. In contrast, the optical handshaking needs to perform optical alignment through beam training. Therefore, the time required for the optical handshaking is uncertain. If it lasts too long, the throughput of the OA-UWSN is not necessarily higher than that of a UWSN with pure acoustic communication. Therefore, it is necessary to limit the optical handshake time to obtain throughput that is superior to pure acoustic communication. This section presents the relationship between the optical handshaking success rate and the upper limit of the optical handshake time when the optical communication rate and the acoustic communication rate are fixed.
Network throughput refers to the ratio of all received packet bytes to the simulation time during the simulation time, as shown in Equation (1) (1) In the OA-UWSN, with the denotation that the frame length is n, the acoustic handshake time is c, the optical handshake time is d, the acoustic bit rate is x, the optical bit rate is y, the success rate of the acoustic handshake is , the optical handshake success rate is , the simulation time is t, and then the throughput expression of the OA-UWSN is shown in Equation (2): The network throughput when purely using acoustic communication is If the OA-UWSN throughput is higher than the pure acoustic network throughput, namely > , then The upper limit of the optical handshaking time can be obtained by deriving Equation (4). Table 1 lists the parameter settings for the simulation in Equation (4). Figure 4 shows the relationship between the upper limit of the optical handshake time and the optical handshake success rate.

Analysis of the Upper Limit of the Optical Handshake Time
In a frame of the superframe structure, the acoustic handshake time is fixed. In contrast, the optical handshaking needs to perform optical alignment through beam training. Therefore, the time required for the optical handshaking is uncertain. If it lasts too long, the throughput of the OA-UWSN is not necessarily higher than that of a UWSN with pure acoustic communication. Therefore, it is necessary to limit the optical handshake time to obtain throughput that is superior to pure acoustic communication. This section presents the relationship between the optical handshaking success rate and the upper limit of the optical handshake time when the optical communication rate and the acoustic communication rate are fixed.
Network throughput refers to the ratio of all received packet bytes to the simulation time during the simulation time, as shown in Equation (1): In the OA-UWSN, with the denotation that the frame length is n, the acoustic handshake time is c, the optical handshake time is d, the acoustic bit rate is x, the optical bit rate is y, the success rate of the acoustic handshake is β, the optical handshake success rate is α, the simulation time is t, and then the throughput expression of the OA-UWSN is shown in Equation (2): The network throughput when purely using acoustic communication is If the OA-UWSN throughput is higher than the pure acoustic network throughput, namely The upper limit of the optical handshaking time can be obtained by deriving Equation (4). Table 1 lists the parameter settings for the simulation in Equation (4). Figure 4 shows the relationship between the upper limit of the optical handshake time and the optical handshake success rate.    Figure 4 shows that as the success rate of the optical handshaking increases, the upper limit of the optical handshake time gradually increases. If the optical handshaking success rate is constant, the throughput of the OA-UWSN is higher than that of a pure acoustic communication network only when the optical handshake time is lower than the upper limit. For example, if the optical handshake success rate is 20%, the throughput of the OA-UWSN is higher than that of a pure acoustic UWSN only when the optical handshake time is less than 1.4 s.

Optical Properties of Underwater Channels
Water is a complex physical, chemical, and biological system. The optical properties of water are related to the three main factors: Pure water, dissolved substances, and suspension [23]. The effects of various components on the beam in a water medium lie in their absorption and scattering effects on the beam [24].

Attenuation Effect of Water
The incident light can be absorbed or scattered in water. The total effect of these two mechanisms is called attenuation, resulting from water molecules and atoms, biomass, and chemicals dissolved in seawater. Underwater, blue-green light attenuation at a wavelength of 450-530 nm is much smaller than other light wavebands, so blue-green light [25,26] is generally assumed for underwater optical communication.
The total absorption coefficient of water can be expressed as the sum of the absorption coefficients of various substances in water, as shown in Equation (5):   Figure 4 shows that as the success rate of the optical handshaking increases, the upper limit of the optical handshake time gradually increases. If the optical handshaking success rate is constant, the throughput of the OA-UWSN is higher than that of a pure acoustic communication network only when the optical handshake time is lower than the upper limit. For example, if the optical handshake success rate is 20%, the throughput of the OA-UWSN is higher than that of a pure acoustic UWSN only when the optical handshake time is less than 1.4 s.

Optical Properties of Underwater Channels
Water is a complex physical, chemical, and biological system. The optical properties of water are related to the three main factors: Pure water, dissolved substances, and suspension [23]. The effects of various components on the beam in a water medium lie in their absorption and scattering effects on the beam [24].

Attenuation Effect of Water
The incident light can be absorbed or scattered in water. The total effect of these two mechanisms is called attenuation, resulting from water molecules and atoms, biomass, and chemicals dissolved in seawater. Underwater, blue-green light attenuation at a wavelength of 450-530 nm is much smaller than other light wavebands, so blue-green light [25,26] is generally assumed for underwater optical communication.
The total absorption coefficient of water can be expressed as the sum of the absorption coefficients of various substances in water, as shown in Equation (5): a(λ) = a w (λ) + a ph (λ) + a d (λ) + a y (λ). (5) In Equation (5), a w is the absorption coefficient of pure water, a ph is the absorption coefficient of chlorophyll or phytoplankton, a d is the absorption coefficient of nonpigment suspended particles, and a y is the absorption coefficient of yellow substances.
When light travels in water, the scattering effect causes the light to deviate from the original propagation direction. The scattering of light by water is caused by water itself, chlorophyll, and suspended particles [27]. The scattering coefficient is shown in Equation (6): In Equation (6), b w is the scattering coefficient of pure water, b ph is the scattering coefficient of chlorophyll or phytoplankton in water, and b d is the scattering coefficient of nonpigmented suspended particles. The parameters in Equations (5) and (6) are all relative to the wavelength m −1 in units.

The Model of Energy Attenuation
The loss of light waves during their propagation is shown in Equation (7) [28]: In Equation (7), a(λ) is the total absorption coefficient, b(λ) is the total scattering coefficient, and λ is the wavelength.
The attenuation law of energy transmitted by light in water is exponentially distributed [29], and the average power received by the receiver is shown in Equation (8): In Equation (8), P t is the transmitted optical power, r is the underwater communication distance of the optical signal, and c(λ) is the total attenuation coefficient of the light beam propagating in seawater.
Considering the loss of the system device and optical path expansion, the received power of underwater wireless optical communication is shown in Equation (9) [30,31]: In Equation (9), η t is the light-emitting power generated by the emitting device represented, η r is the light source representing the received power generated by the receiving device of the light source, η represents the noise power, and ∂ r is the aperture radius of the optical receiving antenna. The parameter value settings are shown in Table 2.

Acoustic Properties of Underwater Channels
Marine media are very complex sound propagation channels that are subject to various natural conditions, geographical conditions, and random factors, which makes their physical properties very complex and unstable and causes delays, distortions, loss, and other changes in the transmission of underwater acoustic signals, loss, and other changes, which become the key factors affecting the transmission of sound waves underwater [32].

Propagation Loss
A seawater medium is a non-ideal loss medium. During the propagation of acoustic waves, the intensity of the seawater is attenuated in the propagation direction. Propagation loss is often used to represent the loss of acoustic signal energy in the ocean [32]. It can be assumed that the propagation loss consists of two parts: Expansion loss and attenuation loss. The extended loss is the geometric effect where the sound intensity is regularly weakened when the acoustic signal propagates outward from the sound source. It is also called geometric loss. Attenuation losses include absorption and scattering, where absorption refers to the effect where part of the acoustic energy is lost due to conversion to thermal energy.
The overall acoustic path loss can be estimated using the semi-empirical formula shown in Equation (10) [33]: A(l, f ) = (l/l r ) k a( f ) l−l r .
In Equation (10), (l/l r ) k is the expansion loss, which is related to the propagation mode and distance of sound waves; l indicates the distance traveled; l r indicates the reference distance; k is the expansion loss index, according to different acoustic propagation conditions, whose value varies usually between 1 and 2, corresponding to cylinder expansion and spherical expansion; and a( f ) l−l r is attenuation loss, where f is the signal frequency and a( f ) is the absorption coefficient, which increases significantly with an increasing frequency of sound waves, in addition to temperature and depth.

The Model of Energy Attenuation
The energy consumption model [34] for acoustic communication in underwater nodes is shown in Equation (11): In Equation (11), E(r) is the energy required for the node to send information, T p is the data transmission time, P is the lowest power that each node can normally receive a packet, and A(r) is the energy attenuation of the data packet when the underwater transmission distance is r. Equation (12) is In Equation (12), a is the attenuation coefficient, r is the communication distance between nodes, k is the energy diffusion factor and is generally 1.5, and a = 10 a( f )/10 is determined by the absorption coefficient a( f ) [35]. Equation (13) is In Equation (13), f is the carrier frequency, the unit is kHz, and the absorption coefficient unit is dB/m.
The parameter settings are shown in Table 3.

Simulation Parameters
The performance evaluation of the proposed MAC protocol of the OA-UWSN was conducted on the OMNeT++ platform. The OA-CMAC protocol was compared to the OA-MAC [36] protocol based on the OA-UWSN proposed by our research group. The performance was evaluated on metrics including throughput, energy consumption, and other indicators evaluating protocol performance.
The settings of the system simulation parameters are shown in Table 4.

OA-CMAC Protocol Throughput
According to the difference in the optical handshaking success rate, this work simulated the relationship between the packet sending rate and the throughput of the OA-CMAC protocol and compared it to the OA-MAC protocols, as shown in Figures 5-7.
In Figure 5, when the optical handshaking success rate was 20% and the network load was low, the OA-CMAC protocol had a postponed access window and the time slot utilization was low, so the throughput was lower than the OA-MAC. As the load increased, the throughput of the OA-MAC protocol based on node slot allocation tended to be stable, while the OA-CMAC protocol node randomly competed, the slot utilization rate increased, and the throughput doubled.
In Figure 6, when the optical handshaking success rate was 50%, the data packet transmission rate was low. When the network load was low, the OA-CMAC protocol had a postponed access window, and the time slot utilization was low, the OA-MAC throughput based on time slot allocation had greater advantages. With increases in the data packet transmission rate and the network load, the OA-MAC protocol data conflict rate was higher. However, the OA-CMAC protocol adopted a postponed access mechanism, which effectively avoided collisions and had a high channel utilization rate.
In Figure 7, where the optical handshaking success rate was 80%, even if the packet transmission rate was low, the throughput of the OA-CMAC protocol was higher than the other two protocols because optical communication could perform high-speed and large-capacity data transmission.  The optical handshaking success rates were configured as 20%, 50%, and 80%. When four packets were transmitted every 10 s, the throughput was 75 kbit/s, 100 kbit/s, and 150 kbit/s, respectively. With the increasing success rate of optical handshaking, the amount of data transmitted from optical communications was continuously increasing, and the throughput of the OA-UWSN was continuously improving.
The simulation results showed that, with the increase in the optical handshaking success rate, the throughput of the OA-CMAC protocol was multiplied. Even if the optical handshaking success rate was low, when the network load was high, the throughput of the OA-CMAC protocol was higher than the other two protocols. Therefore, the OA-CMAC protocol is suitable for high-speed and highload networks.  The optical handshaking success rates were configured as 20%, 50%, and 80%. When four packets were transmitted every 10 s, the throughput was 75 kbit/s, 100 kbit/s, and 150 kbit/s, respectively. With the increasing success rate of optical handshaking, the amount of data transmitted from optical communications was continuously increasing, and the throughput of the OA-UWSN was continuously improving.
The simulation results showed that, with the increase in the optical handshaking success rate, the throughput of the OA-CMAC protocol was multiplied. Even if the optical handshaking success rate was low, when the network load was high, the throughput of the OA-CMAC protocol was higher than the other two protocols. Therefore, the OA-CMAC protocol is suitable for high-speed and highload networks. The optical handshaking success rates were configured as 20%, 50%, and 80%. When four packets were transmitted every 10 s, the throughput was 75 kbit/s, 100 kbit/s, and 150 kbit/s, respectively. With the increasing success rate of optical handshaking, the amount of data transmitted from optical communications was continuously increasing, and the throughput of the OA-UWSN was continuously improving.
The simulation results showed that, with the increase in the optical handshaking success rate, the throughput of the OA-CMAC protocol was multiplied. Even if the optical handshaking success rate was low, when the network load was high, the throughput of the OA-CMAC protocol was higher than the other two protocols. Therefore, the OA-CMAC protocol is suitable for high-speed and high-load networks. In Figure 8, we compared the total amount of data from the OA-CMAC to the optical-acoustic simultaneous handshake MAC protocol (OAs-CMAC), which exchanges RTS/CTS messages over both acoustics and optics at the same time. Figure 8 shows the average results of 1000 simulations.
Optical and acoustic simultaneous handshakes were performed within 0.4 s in OAs-CMAC. If the optical handshake was successful within 0.4 s, optical communication was performed. Otherwise, acoustic communication was performed, and at the same time, the optical handshake continued. If the optical handshake was successful within the next 1 s, the optical communication was switched. Otherwise, the acoustic communication was performed continuously. Since optical transmission and reception requires directional optical communication, it was difficult for RTS/CTS to perform optical alignment without obtaining the position information of the node, and the optical RTS/CTS signal was likely to be unreceived, which made the handshake meaningless. However, if an omnidirectional optical handshake was used, the handshake distance was very short, so it was also possible that the RTS/CTS signal of the optical handshake was not received, and acoustic communication was forced to be used. Therefore, the total amount of data transmitted at the same time was much lower than that of OA-CMAC. Therefore, the first acoustic In Figure 8, we compared the total amount of data from the OA-CMAC to the optical-acoustic simultaneous handshake MAC protocol (OAs-CMAC), which exchanges RTS/CTS messages over both acoustics and optics at the same time. Figure 8 shows the average results of 1000 simulations.
Optical and acoustic simultaneous handshakes were performed within 0.4 s in OAs-CMAC. If the optical handshake was successful within 0.4 s, optical communication was performed. Otherwise, acoustic communication was performed, and at the same time, the optical handshake continued. If the optical handshake was successful within the next 1 s, the optical communication was switched. Otherwise, the acoustic communication was performed continuously. In Figure 8, we compared the total amount of data from the OA-CMAC to the optical-acoustic simultaneous handshake MAC protocol (OAs-CMAC), which exchanges RTS/CTS messages over both acoustics and optics at the same time. Figure 8 shows the average results of 1000 simulations.
Optical and acoustic simultaneous handshakes were performed within 0.4 s in OAs-CMAC. If the optical handshake was successful within 0.4 s, optical communication was performed. Otherwise, acoustic communication was performed, and at the same time, the optical handshake continued. If the optical handshake was successful within the next 1 s, the optical communication was switched. Otherwise, the acoustic communication was performed continuously. Since optical transmission and reception requires directional optical communication, it was difficult for RTS/CTS to perform optical alignment without obtaining the position information of the node, and the optical RTS/CTS signal was likely to be unreceived, which made the handshake meaningless. However, if an omnidirectional optical handshake was used, the handshake distance was very short, so it was also possible that the RTS/CTS signal of the optical handshake was not received, and acoustic communication was forced to be used. Therefore, the total amount of data transmitted at the same time was much lower than that of OA-CMAC. Therefore, the first acoustic Since optical transmission and reception requires directional optical communication, it was difficult for RTS/CTS to perform optical alignment without obtaining the position information of the node, and the optical RTS/CTS signal was likely to be unreceived, which made the handshake meaningless. However, if an omnidirectional optical handshake was used, the handshake distance was very short, so it was also possible that the RTS/CTS signal of the optical handshake was not received, and acoustic communication was forced to be used. Therefore, the total amount of data transmitted at the same time was much lower than that of OA-CMAC. Therefore, the first acoustic handshake was used, and the location information of the transmitting and receiving nodes was transmitted simultaneously during the handshake, and then the optical RTS/CTS was performed by positional information obtained by acoustic handshake.

OA-CMAC Protocol Node Energy Consumption Simulation
In this paper, the initial energy of the OA-UWSN node was set to 3600 kJ, and the energy threshold of the node was 1080 kJ. When the node energy was lower than 360 kJ, the node was considered dead, and the control center replaced the new node. When the node energy was 360 kJ-1080 kJ, the node stopped acoustic communication and preferentially used optical communication to transmit small-capacity data with high priority, such as temperature, salinity, and depth. If the optical handshake was not successful, the data was sent via acoustic communication.
Since the OA-CMAC protocol proposed in this paper increases the limitation of the energy threshold, the lifetime of the UWSN node is further extended compared to the OA-CMAC that does not set that energy threshold. Figure 9 shows node energy consumption simulations in the OA-CMAC and OAs-CMAC protocols. The simulation curve is the node's two lifetimes. In each curve, the gentler part of the decrease is the energy consumption during the acoustic handshake and optical handshake. The steep part is the energy consumption of optical communications, and the steepest is the loss of acoustic communication energy. As can be seen from the figure, the lifetime of the OA-UWSN node was 7800 h, the lifetime of the OA-UWSN node without the energy threshold was 6400 h, and the lifetime of a single acoustic communication node was 6000 h. Therefore, the lifetime of the OA-UWSN node increased by 14% compared to the OA-UWSN node without an energy threshold, which was 30% longer than the lifetime of the OAs-CMAC. handshake was used, and the location information of the transmitting and receiving nodes was transmitted simultaneously during the handshake, and then the optical RTS/CTS was performed by positional information obtained by acoustic handshake.

OA-CMAC Protocol Node Energy Consumption Simulation
In this paper, the initial energy of the OA-UWSN node was set to 3600 kJ, and the energy threshold of the node was 1080 kJ. When the node energy was lower than 360 kJ, the node was considered dead, and the control center replaced the new node. When the node energy was 360 kJ-1080 kJ, the node stopped acoustic communication and preferentially used optical communication to transmit small-capacity data with high priority, such as temperature, salinity, and depth. If the optical handshake was not successful, the data was sent via acoustic communication.
Since the OA-CMAC protocol proposed in this paper increases the limitation of the energy threshold, the lifetime of the UWSN node is further extended compared to the OA-CMAC that does not set that energy threshold. Figure 9 shows node energy consumption simulations in the OA-CMAC and OAs-CMAC protocols. The simulation curve is the node's two lifetimes. In each curve, the gentler part of the decrease is the energy consumption during the acoustic handshake and optical handshake. The steep part is the energy consumption of optical communications, and the steepest is the loss of acoustic communication energy. As can be seen from the figure, the lifetime of the OA-UWSN node was 7800 h, the lifetime of the OA-UWSN node without the energy threshold was 6400 h, and the lifetime of a single acoustic communication node was 6000 h. Therefore, the lifetime of the OA-UWSN node increased by 14% compared to the OA-UWSN node without an energy threshold, which was 30% longer than the lifetime of the OAs-CMAC.

Conclusions
This paper presented a low-power contention-based MAC protocol for the OA-UWSN. The OA-CMAC protocol locates the nodes through acoustic handshaking, performs beam alignment through optical handshaking, and transmits data after successful acoustic and optical handshakes. Through OMNeT++ simulation, it could be seen that when the optical handshaking success ratio was higher than 50%, the throughput was increased by several folds compared to the underwater acoustic communication MAC protocol. The node's lifetime was increased by 30%, greatly reducing the network cost. Using the OA-CMAC protocol can achieve higher throughput and lower node energy

Conclusions
This paper presented a low-power contention-based MAC protocol for the OA-UWSN. The OA-CMAC protocol locates the nodes through acoustic handshaking, performs beam alignment through optical handshaking, and transmits data after successful acoustic and optical handshakes. Through OMNeT++ simulation, it could be seen that when the optical handshaking success ratio was higher than 50%, the throughput was increased by several folds compared to the underwater acoustic communication MAC protocol. The node's lifetime was increased by 30%, greatly reducing the network cost. Using the OA-CMAC protocol can achieve higher throughput and lower node energy consumption, which is suitable for underwater wireless communication environments with high loads and large data.